elmacartney / Postcop_MA

0 stars 0 forks source link

Converting 95% CI to SE #1

Closed itchyshin closed 1 year ago

itchyshin commented 1 year ago

There is a function to do this

convert <- function(lower, upper, n){
    width <- upper - lower 
    se <- width/(2*qt(0.975,n - 2)) 
    se
}

lower = lower bound, upper = upper bound and n is n used for getting that estimate for se

itchyshin commented 1 year ago

@elmacartney - when we convert estimates (and SE) into r (correlation) - we will need to know whether these estimates are a comparison of two groups or it is a slope (relationship between trait and % success). If there are two groups, I will need n for each group (I guess it is usually balanced?). Let me know

elmacartney commented 1 year ago

Thanks @itchyshin I will take note of if it was between two groups or not.

For the studies that provide no error for the estimate, is there anything we can do or should we contact authors? estimates come with p value

itchyshin commented 1 year ago

@elmacartney - if you have p value we do not need SE - that will be fine.

Yes, thank you for noting if these are from two groups or not