Dear Statalisters,
I am using a sample of 845 migrants and I want to estimate a remittance model using both a Heckman selection model and a simple two-step model.
My dependent variables are 1) remit (binary variable equal 1 if migrant i remit) and 2) amount remit ( recoded as intervals).
The dependent variable remit is estimated using a probit model; while the variable amount_remit is estimated, conditional on the decision to remit, using interval regression (I have created two variables, amount_remit_L and amount_remit_U, containing the lower and upper endpoints of the amount_remit categories). The migrants sending remittances are 585.
Given that I need to estimate the model in one step (to get the correct standard errors) I did it in the following way:
(x4 and x11 are my exclusion restrictions)
capture program drop myprog
program myprog, eclass
xi: prob remit x1 x2 x3 i.x4 x5 x6 x7 i.x8 x9 x10 x11 x12
predict double xb1,xb
gen double imr1=normalden(xb1)/normal(xb1)
xi:intreg amount_remit_L and amount_remit_U x1 x2 x3 x5 x6 x7 i.x8 x9 x10 x12 imr1 if remit==1
end
bootstrap, reps(50) seed(2364723): myprog
Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 50
insufficient observations to compute bootstrap standard errors
no results will be saved
Can you please help me to understand what I am doing wrong? does it depend on the sample size?
How can I estimate my model in one step to get the correct standard errors?
I am using a sample of 845 migrants and I want to estimate a remittance model using both a Heckman selection model and a simple two-step model.
My dependent variables are 1) remit (binary variable equal 1 if migrant i remit) and 2) amount remit ( recoded as intervals).
The dependent variable remit is estimated using a probit model; while the variable amount_remit is estimated, conditional on the decision to remit, using interval regression (I have created two variables, amount_remit_L and amount_remit_U, containing the lower and upper endpoints of the amount_remit categories). The migrants sending remittances are 585.
Given that I need to estimate the model in one step (to get the correct standard errors) I did it in the following way:
(x4 and x11 are my exclusion restrictions)
capture program drop myprog
program myprog, eclass
xi: prob remit x1 x2 x3 i.x4 x5 x6 x7 i.x8 x9 x10 x11 x12
predict double xb1,xb
gen double imr1=normalden(xb1)/normal(xb1)
xi:intreg amount_remit_L and amount_remit_U x1 x2 x3 x5 x6 x7 i.x8 x9 x10 x12 imr1 if remit==1
end
bootstrap, reps(50) seed(2364723): myprog
Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 50
insufficient observations to compute bootstrap standard errors
no results will be saved
Can you please help me to understand what I am doing wrong? does it depend on the sample size?
How can I estimate my model in one step to get the correct standard errors?
Comment