I am trying to estimate a switching regression model (Tobit-5) with the sampleSelection package in R. The code I am using is
switchmodel2<-selection(selectEq, list(outcomeEq,outcomeEq), method = "2step")
once I define selectEq as the selection regression of the regimes at the first stage, and outcomeEq as the outcome equation specification common to both regimes.
Unfortunately, I get NAs on all standard errors (and therefore even the t-stats and p-values) of the outcome regressions and the error terms. The selection equation seems to be properly estimated instead.
If I try to run this model with maximum likelihood, rather than the 2-step approach, the model is properly estimated. My question therefore is: what do I have to code in order to estimate a Tobit-5 model with the two-step approach?
Many thanks to everyone is going to help me,
Best