Re: [R] Perform GEE regression in R with multiple dependent variables

2018-08-06 Thread Duncan Mackay
modelling Regards Duncan From: euthymios kasvikis [mailto:euthymios.k.kasvi...@gmail.com] Sent: Tuesday, 7 August 2018 02:22 To: dulca...@bigpond.com Cc: r-help@r-project.org Subject: Re: [R] Perform GEE regression in R with multiple dependent variables Or library(multgee

Re: [R] Perform GEE regression in R with multiple dependent variables

2018-08-06 Thread euthymios kasvikis
Or library(multgee) fitord <- ordLORgee(Ideo_Ordinal~ Machiavellianism+Psychopathy+Narcissism, data=RightWomen, id= Politician_ID,repeated=Country_ID) summary(fitord) Should I use dta$Ideo_Ordinal <- ordered(factor(dta$Ideo_Ordinal)) ? Στις Δευ, 6 Αυγ 2018 στις 6:00 μ.μ., ο/η

Re: [R] Perform GEE regression in R with multiple dependent variables

2018-08-06 Thread euthymios kasvikis
First of all thanks for your advice. So suppose that I would like to use the multgee package. The model would be like: library(multgee) fitord <- ordLORgee(Ideo_Ordinal~ Machiavellianism+Psychopathy+Narcissism, data=RightWomen, id= ordered(factor(Country_ID))) summary(fitord) Σ

Re: [R] Perform GEE regression in R with multiple dependent variables

2018-08-05 Thread Duncan Mackay
Hi Please read the geepack manual carefully. GEE ordinal regression is not simple. You need to format your data and do not use sample as a storage name. It is the name of a function dta is storage dta$Ideo_Ordinal <- ordered(factor(dta$Ideo_Ordinal)) m0 <- ordgee(Ideo_Ordinal ~ Machiavellianism