Hi everyone,
I used the cmp command to estimate a system of 3 equations:
- a linear regression (granted credit amount)
- a probit model, which is also the selection condition for the first equation (acceptance or rejection of the application)
- a linear regression (requested credit amount)
here is my command:
cmp (montantacc= montantdem x3 x4 x5 ....Branch : ) (Octroi= montantdem instr2 x3 x4 x 5.... || Branch : ) (montantdem= instr1 x2 x3 x4 x5.... || Branch : ), ind(Octroi*1 4 1) tech(dfp) nonrtol
Then, the 3 individual models are fit but for the full model I receive this error message:
"Fitting constant-only model for LR test of overall model fit.
J(): 3900 unable to allocate real <tmp>[37875,6]
cmp_lnL(): - function returned error
<istmt>: - function returned error
initial vector: matrix must be dimension 14
conformability error
conformability error"
I guess the problem comes from the selection after the comma: ind(Octroi*1 4 1)
Maybe it is an error syntax ?
Thanks for your help !
I used the cmp command to estimate a system of 3 equations:
- a linear regression (granted credit amount)
- a probit model, which is also the selection condition for the first equation (acceptance or rejection of the application)
- a linear regression (requested credit amount)
here is my command:
cmp (montantacc= montantdem x3 x4 x5 ....Branch : ) (Octroi= montantdem instr2 x3 x4 x 5.... || Branch : ) (montantdem= instr1 x2 x3 x4 x5.... || Branch : ), ind(Octroi*1 4 1) tech(dfp) nonrtol
Then, the 3 individual models are fit but for the full model I receive this error message:
"Fitting constant-only model for LR test of overall model fit.
J(): 3900 unable to allocate real <tmp>[37875,6]
cmp_lnL(): - function returned error
<istmt>: - function returned error
initial vector: matrix must be dimension 14
conformability error
conformability error"
I guess the problem comes from the selection after the comma: ind(Octroi*1 4 1)
Maybe it is an error syntax ?
Thanks for your help !
Comment