Hi
I am making a latent class model for panel data. I have estimated the mixed logit model. I am trying to follow the description here:
https://biogeme.epfl.ch/sphinx/auto_examples/swissmetro/plot_b16panel_discrete_socio_eco.html#
I have several things that I do not understand.
https://biogeme.epfl.ch/sphinx/auto_examples/swissmetro/plot_b13panel_simul.html
simulated_loglike = logprob.getValue_c(
database=flat_database,
betas=results.getBetaValues(),
numberOfDraws=250,
aggregation=True,
prepareIds=True,
)
numerator = MonteCarlo(ACS2_param[0] * probIndiv)
denominator = MonteCarlo(probIndiv)
simulate = {
'Numerator': numerator,
'Denominator': denominator,
}
biosim = bio.BIOGEME(flat_database, simulate)
biosim.modelName = 'panel_flat_latent_class_individual_sim'
class_simulation = biosim.simulate(theBetaValues=results.getBetaValues())
class_simulation.describe()
But this gives me 100% class membership. It is also only for one parameter. How do I fix it?