Page 1 of 1

LC model with covariate

Posted: 15 May 2020, 15:33
by suzanakarim
Hi,
I am new to this forum.
Currently, I am working on the LC model with covariates (EM algorithm), apollo_exercise 28. I am confused about the function apollo_probabilities_class.
Specifically, why are we exponentiating the following expression, if our goal is to calculate eq 11.5 in manual?

P[["model"]]=exp(Reduce('+', mapply('*',h_grouped,log_pi_values,SIMPLIFY = FALSE)))

I might miss something obvious. ANy explanation to this would be really appreciated

Thanks
Suzana

Re: LC model with covariate

Posted: 15 May 2020, 16:09
by stephanehess
Hi Suzana

this is the likelihood equivalent of Equation 11.5. I have clarified this in the manual for v.0.1.1. Please also consult Eqn 14 in https://www.caee.utexas.edu/prof/bhat/A ... egment.pdf

Best wishes

Stephane

Re: LC model with covariate

Posted: 18 May 2020, 06:01
by suzanakarim
Dr. Stephane,
Thank you very much. I understood it.

Suzana