Hello,
I have a loop with 1000 repetitions which includes OR computation of an
exposure factor and outcome.
I compute OR like this:

t<-table(exposure,outcome)

oddsratio(t)$measure["estimate"]

This gives me the estimates for exposure=0 and exposure=1 but exposure=0 is
the reference group and i need only the estimate for exposure=1.

I specified a matrix OR with 3 columns (for OR estimate and lower and upper
confidence limits) and 1000 rows

OR[k,]<-oddsratio(t)$measure["estimate"]?

I tried: "exposure==1" or "measure["estimate"]" and it gives me missing
value "NA".

I appriciate any help,

Sigalit.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to