[R] Question about FlexMix package
Andra Isan
andra_isan at yahoo.com
Thu Aug 25 19:06:06 CEST 2011
Hello All,
I am trying to use FlexMix package for my two linear regression models:
http://finzi.psych.upenn.edu/R/library/flexmix/doc/regression-examples.pdf
y1 = w1 * x1 + w2 *x2 + w3 * x3 +beta1
y2 = w4 * x4 + w4 *x4 + w4 * x4 +beta2
and I would like to combine these two regression models with a alpha parameter:
alpha * y1 + (1-alpha) * y2
(alpha needs to be learned)
but it seems to me that I can not use the FlexMix package because as far as I understood, there should be some "the same predictors" in the two models. So, I am not sure if there is any way that I can use that package for my purpose. Could you please help me with that?
Thanks a lot,
Andra
More information about the R-help
mailing list