powered by
odds_ratio Calculates the odds ratio and standard error and degrees of freedom to be used in function with.milist.
odds_ratio
with.milist
odds_ratio(y, x, formula, data)
The odds ratio, related standard error and complete data degrees of freedom (dfcom) as n-2.
0-1 binary response variable.
0-1 binary independent variable.
A formula object to specify the model as normally used by glm.
An objects of class milist, created by df2milist, df2milist or mids2milist.
milist
df2milist
mids2milist
Martijn Heymans, 2021
Note that the standard error of the OR is in fact the standard error of the (natural) log odds ratio.
with.milist, pool_odds_ratio
pool_odds_ratio
imp_dat <- df2milist(lbpmilr, impvar="Impnr") ra <- with(imp_dat, expr=odds_ratio(Chronic ~ Radiation))
Run the code above in your browser using DataLab