Difference in Relative Risk

Discuss the jamovi platform, possible improvements, etc.
Post Reply
Huberth
Posts: 3
Joined: Thu Jul 18, 2019 9:04 pm

Difference in Relative Risk

Post by Huberth »

Hi
I have a doubt with de Relative Risk, using Independent Samples (contingency tables). I was doing a homework and a I found that if a do it manually y got a different result from jamovi. I did a screenshot trying to be explanatory. Can someone tell me why this happed or I'm doing something wrong.

Thanks for any help
Attachments
RR Screenshot.png
RR Screenshot.png (153.15 KiB) Viewed 3314 times
User avatar
jonathon
Posts: 2617
Joined: Fri Jan 27, 2017 10:04 am

Re: Difference in Relative Risk

Post by jonathon »

hey,

so these are the calcs we use here:

https://github.com/jamovi/jmv/blob/mast ... #L536-L549

let us know if you still think there's an issue.

kind regards

jonathon
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Difference in Relative Risk

Post by MAgojam »

Can someone tell me why this happed or I'm doing something wrong.
HI, @Huberth.

The manual calculation of your RR is correct, but jamovi also correctly calculates RR.
Because RR in jamovi, corresponds to yours, it is necessary that in the first cell (A) the combination of the cases encoded with 1 for rows (fum_cod) is shown with the cases coded with 1 for columns (BP_cod).
screenshot.png
screenshot.png (133.1 KiB) Viewed 3302 times
From the ribbon Data-> Setup-> Data Variable:
Retrieve your fum_cod variable, in the Levels list select encoding 1 (second line) and with the up arrow move it over (do the same thing with BP_cod).
It's about your output ...

Cheers,
Maurizio
Huberth
Posts: 3
Joined: Thu Jul 18, 2019 9:04 pm

Re: Difference in Relative Risk

Post by Huberth »

[quote="jonathon"]hey,

so these are the calcs we use here:

https://github.com/jamovi/jmv/blob/mast ... #L536-L549



Thank you very much, the formula is ok, its interesting to see the program part of the software

regards

Huberth
Huberth
Posts: 3
Joined: Thu Jul 18, 2019 9:04 pm

Re: Difference in Relative Risk

Post by Huberth »

MAgojam wrote:
Can someone tell me why this happed or I'm doing something wrong.
HI, @Huberth.

The manual calculation of your RR is correct, but jamovi also correctly calculates RR.
Because RR in jamovi, corresponds to yours, it is necessary that in the first cell (A) the combination of the cases encoded with 1 for rows (fum_cod) is shown with the cases coded with 1 for columns (BP_cod).

Cheers,
Maurizio

Thanks Maurizio it was very helpful

regards

Huberth
Post Reply