Re: [R] woby2 (Odds Ratio) for variables with 3 or more levels

2013-06-11 Thread Michael Friendly
You may want loddsratio in the vcdExtra package On 6/10/2013 12:27 PM, Vlatka Matkovic Puljic wrote: Dear all, I am using Epi package to calculate Odds ratio in my bivariate analysis. How can I make *twoby2 *in variables that have 3 or more levels. For example: I have 4 level var (Age)

[R] woby2 (Odds Ratio) for variables with 3 or more levels

2013-06-10 Thread Vlatka Matkovic Puljic
Dear all, I am using Epi package to calculate Odds ratio in my bivariate analysis. How can I make *twoby2 *in variables that have 3 or more levels. For example: I have 4 level var (Age) m=matrix(c(290, 100,232, 201, 136, 99, 182, 240), nrow=4, ncol=2) library (Epi) twoby2(m) R gives me only

Re: [R] woby2 (Odds Ratio) for variables with 3 or more levels

2013-06-10 Thread David Winsemius
On Jun 10, 2013, at 9:27 AM, Vlatka Matkovic Puljic wrote: Dear all, I am using Epi package to calculate Odds ratio in my bivariate analysis. How can I make *twoby2 *in variables that have 3 or more levels. I hope looking at that again you will see how odd it sounds to be requesting

Re: [R] woby2 (Odds Ratio) for variables with 3 or more levels

2013-06-10 Thread James C. Whanger
You may want to consider a cumulative logit model which effectively bifurcates an ordinal variable by utilizing the odds of being in a given level or below (depending on your coding). On Mon, Jun 10, 2013 at 12:27 PM, Vlatka Matkovic Puljic vlatk...@gmail.com wrote: Dear all, I am using Epi