--
You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/2b5faa55-bf7d-47cf-990b-5a2a3c0ad1e3n%40googlegroups.com.
Since the error term is not directly included in the definition of CARLOVERS, how should I account for the correlation structure and scaling between the two latent variables?
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/ef22b62a-d3fd-4ed7-8b39-50df1f7200ccn%40googlegroups.com.
On 17 Mar 2022, at 12:31, m.sam...@gmail.com <m.sam...@gmail.com> wrote:
Well I understand that. That is probably the reason why you did not include a "sigma_s * omega" term in the specification of CARLOVERS in the "02oneLatentOrdered.ipynb". Then you imported the estimated coefficients directly into "04latentChoiceSeq.ipynb" and dealt with its scaling there. Thus, you did not have to worry about scaling in "02oneLatentOrdered.ipynb".
Now assume that I want to add a second LV to "02oneLatentOrdered.ipynb". If I omit a random term and define both LVs the way you have done, i.e., like,
CARLOVERS = ( coef_intercept + coef_age_65_more * age_65_more + formulaIncome + coef_moreThanOneCar * moreThanOneCar + coef_moreThanOneBike * moreThanOneBike + coef_individualHouse * individualHouse + coef_male * male + coef_haveChildren * haveChildren + coef_haveGA * haveGA + coef_highEducation * highEducation )
and include its measurement equations as well. Then how should I account for the scaling between the two?
Doesn't it influence the value of the coefficients? I expected to set one of the variances to say 1 and estimate the other variance,
then import those to the sequential model and estimate another scaling coefficient together with the rest of the choice model. If this postulate is right, then I do not know what syntax to use.
Is it correct to add some "sigma_1*omega_1" to the "LV_1" and "sigma_2*omega_2" to the "LV_2", then fix sigma_1 to 1 and estimate?
In that case would it suffice to modify "loglike" by adding LV_2's measurement equations and estimate using,
biogeme = bio.BIOGEME(database, loglike, numberOfDraws=20000)
Sorry to be long but the insane runtime on the full monte carlo model is really hindering my test of different specifications. I really have to make use of the sequential approach at this stage.
Thank you in advance,
Mahdi.
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/83ffc46a-fb09-41c8-832c-2b2906f72d17n%40googlegroups.com.