Important: Read this before posting to this forum

  1. This forum is for questions related to the use of Apollo. We will answer some general choice modelling questions too, where appropriate, and time permitting. We cannot answer questions about how to estimate choice models with other software packages.
  2. There is a very detailed manual for Apollo available at http://www.ApolloChoiceModelling.com/manual.html. This contains detailed descriptions of the various Apollo functions, and numerous examples are available at http://www.ApolloChoiceModelling.com/examples.html. In addition, help files are available for all functions, using e.g. ?apollo_mnl
  3. Before asking a question on the forum, users are kindly requested to follow these steps:
    1. Check that the same issue has not already been addressed in the forum - there is a search tool.
    2. Ensure that the correct syntax has been used. For any function, detailed instructions are available directly in Apollo, e.g. by using ?apollo_mnl for apollo_mnl
    3. Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
    4. Make sure that R is using the latest official release of Apollo.
  4. If the above steps do not resolve the issue, then users should follow these steps when posting a question:
    1. provide full details on the issue, including the entire code and output, including any error messages
    2. posts will not immediately appear on the forum, but will be checked by a moderator first. This may take a day or two at busy times. There is no need to submit the post multiple times.

The distribution of random terms

Ask questions about model specifications. Ideally include a mathematical explanation of your proposed model.
Post Reply
infiniteugi
Posts: 7
Joined: 02 Feb 2021, 07:06

The distribution of random terms

Post by infiniteugi »

Hello,

I used Apollo to develop a hybrid choice model for my study to submit a peer-reviewed journal. I got a critique on the methodology regarding the distribution of random terms in the LV model as follows:

"The random terms in the latent variables are following the normal distribution N(0,1), but it is not correct. They need to be distributed with variances different from 1 and the variances need to be estimated."

I'm not sure if he/she is correct, and if it is correct how can I fix this? Please give me some advice.

Thank you very much.
dpalma
Posts: 190
Joined: 24 Apr 2020, 17:54

Re: The distribution of random terms

Post by dpalma »

Hi,

There are two possible normalisation approaches when working with Integrated Choice and Latent Variable (ICLV) model, also called hybrid choice models:
  • To fix one of the coefficients in the measurement equation to the value 1, while leaving all parameters in the structural equation free.
  • To fix the variance of the structural equation error term to the value 1, while leaving all parameters in the measurement equation free.
In the choice modelling literature, the preferred method is the second (fixing the std dev of the structural equation). You can see Raveau et al. (2012) for details.

Now, I don't know how your model is formulated, so I can't say what would be the best way to reply to your reviewer, but the reference I mentioned is a good place for you to start looking.

Cheers
David
infiniteugi
Posts: 7
Joined: 02 Feb 2021, 07:06

Re: The distribution of random terms

Post by infiniteugi »

Hello David,

Thank you for your response. Could you please explain more about the distribution of the random terms?

I followed the Apollo manual (mostly example #26), and my code is as follows:

Code: Select all

apollo_draws = list(
  interDrawsType="sobol",
  interNDraws=500
  interNormDraws = c("eta_tl", "eta_qb", "eta_av")
)

### Create random parameters
apollo_randCoeff=function(apollo_beta, apollo_inputs){
  randcoeff = list()
  
  randcoeff[["LV_tl"]] = 
    gamma_physical_tl*physical +
    gamma_visual_tl*visual +
    gamma_age1834_tl*age1834 +
    gamma_age3544_tl*age3544 +
    gamma_age4554_tl*age4554 +
    gamma_age5564_tl*age5564 +
    gamma_age65_tl*age65 +
    gamma_no_car_tl*no_car +
    gamma_dist_bus_tl*dist_bus + 
    eta_tl
  
  randcoeff[["LV_qb"]] =  
    gamma_physical_qb*physical +
    gamma_visual_qb*visual +
    gamma_no_car_qb*no_car + 
    gamma_avg_p_sw_qb*avg_p_sw + 
    gamma_p_com_pub_qb*p_com_pub +
    gamma_medinc_qb*medinc +
    eta_qb
  
  randcoeff[["LV_av"]] = 
    gamma_physical_av*physical +
    gamma_visual_av*visual +
    gamma_age1834_av*age1834 +
    gamma_age3544_av*age3544 +
    gamma_age4554_av*age4554 +
    gamma_age5564_av*age5564 +
    gamma_age65_av*age65 +
    gamma_college_av*college +
    gamma_no_car_av*no_car +
    gamma_LV_tl_av*randcoeff[["LV_tl"]] +
    gamma_LV_qb_av*randcoeff[["LV_qb"]] +
    eta_av
  
  return(randcoeff)
}
I thought that the random components, in this case, follow the normal distribution. But the reviewer said that "The random terms in the latent variables are said to be distributed N(0,1), this is not correct, they need to be distributed with variances different from 1 and the variances need to be estimated. The structural equations of the LV do also need to include a constant and these need to be estimated."

Did I misunderstand the reviewer's comment?

Please advise me...

Thank you very much.
Last edited by infiniteugi on 16 Sep 2021, 14:33, edited 1 time in total.
stephanehess
Site Admin
Posts: 998
Joined: 24 Apr 2020, 16:29

Re: The distribution of random terms

Post by stephanehess »

Hi

in relation to the reviewer's comment:

"The random terms in the latent variables are said to be distributed N(0,1), this is not correct, they need to be distributed with variances different from 1 and the variances need to be estimated."

--> This depends on whether you are estimating the variances in your measurement model. See the discussion in https://doi.org/10.1007/s11116-011-9351-z

"The structural equations of the LV do also need to include a constant and these need to be estimated"

--> this is not correct in general

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Post Reply