[R] Generating weights based on certain condition in the dataset

2011-12-13 Thread Sudhi.Upadhyaya
Dear all, My goal is to create weights. I have three covariates x1 x2 x3 These three covariates are discrete, they can only store either 1 or 0. So x1 x2 x3 -- 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 1 1 .. Sometimes they have missing data x1 x2 x3 -- 0 1 -

[R] EM Algorithm for missing data

2011-12-07 Thread Sudhi.Upadhyaya
Dear all, I need help with EM algorithm. I am modeling this alogirthm based on Incomplete Data in Generalized Linear Models by Joseph G Ibrahim. i have half way through developing the R code based on this this paper, I need little help in tweaking my code furthure.