LC model with covariate
Posted: 15 May 2020, 15:33
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
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