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 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
> Comparing : Row 1 vs. Row 2
>
> While I would like to have reference value in Row 1, and compare Row 2, Row
> 3 and Row 4 with it.
>
>
> Thanks for your help!
>
>         [[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.
>



-- 
*James C. Whanger*
*
*

        [[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