I have a question about programming a bivariate normal distribution for the ml command.
I have a two-step sample selection model where the first step is a probit and the second step is a left-censored Tobit (censored at zero). The error terms are assumed to be bivariate normal (not standard normal as the standard deviation for tobit is σ, not one).
My question is about programming the likelihood function when probit=1 and tobit is censored at zero. In this case, I need to calculate the bivariate normal probability (through a double integral of the pdf from -∞ to xb1 for probit and from -∞ to -xb2 for tobit).
If it was a standard bivariate normal distribution, I can easily calculate the probability through
However, this approach does not work when one of the standard deviations is σ. Does anyone know if there is any command/plugin allowing me to calculate the bivariate normal probability including σ?
I have a two-step sample selection model where the first step is a probit and the second step is a left-censored Tobit (censored at zero). The error terms are assumed to be bivariate normal (not standard normal as the standard deviation for tobit is σ, not one).
My question is about programming the likelihood function when probit=1 and tobit is censored at zero. In this case, I need to calculate the bivariate normal probability (through a double integral of the pdf from -∞ to xb1 for probit and from -∞ to -xb2 for tobit).
If it was a standard bivariate normal distribution, I can easily calculate the probability through
egen `sp' = mvnp(`xb1' `xb2')...
Comment