[R] Logistic regression and FIML for treating missing values

2014-02-24 Thread Jesse Gervais
Hello there, Is it possible to do a logistic regression with R while 1) using the full-information maximum likelihood (FIML) for treating missing values, and 2) having a complex sample design (Cluster, Weight, Stratum). I looked at Lavaan, but, if I'm correct, it doesn't do FIML when using ca

[R] polychoric correlation with multiple imputations, a Strate and a Weight

2013-11-28 Thread Jesse Gervais
Hi there, I'm generally more a Stata user than a R user, but I need to computed something, and I am not able to do it with Stata 13. So, here I am! I have a database that has multiple imputations (imputations are already done) with a complex sample design (Strate and Weight). Is it possible, i

[R] (sans objet)

2013-10-03 Thread Jesse Gervais
Hello there, I try to construct a variable with R, but I have some difficulties. Assume that I use a data set named = mydata. I want to create a variable that is the mean (totmean) or the sum (totsum) of 6 variables (var1, var2, var3, var4, var5, var6). However, I want only participants who have

[R] Bivariate - multivariate linear regression

2013-05-17 Thread Jesse Gervais
Hi there, I want to do several bivariate linear regressions and, than, do a multivariate linear regression including only variables significantly associated *(p < 0.15)* with y in bivariate analysis, without having to look manually to those p values. So, here what I got for the moment. Fir