Dear Statalist-Users,
I want to analyze the effect of several variables on the probability to donate in the blood donation context using panel data. I am using a logit-model with the dependent variable of donation.
I have one independent variable with the range of 0 to 8 (most of the values are 0) for which I want to control the endogeneity using copula.
Regarding to Park & Gupta (2012) I need to generate the inverse distribution function of the extreme value distribution with mean 1.5 and scale parameter 0.2 for that variable.
I have the following code (which works) for the case of a linear regression model and the case that regarding to Park & Gupta the inverse of the normal cumulative distribution function is needed:
Is there a command to get the inverse of the extreme value distribution or a way to change the code to make it fit to my current problem?
I want to analyze the effect of several variables on the probability to donate in the blood donation context using panel data. I am using a logit-model with the dependent variable of donation.
I have one independent variable with the range of 0 to 8 (most of the values are 0) for which I want to control the endogeneity using copula.
Regarding to Park & Gupta (2012) I need to generate the inverse distribution function of the extreme value distribution with mean 1.5 and scale parameter 0.2 for that variable.
I have the following code (which works) for the case of a linear regression model and the case that regarding to Park & Gupta the inverse of the normal cumulative distribution function is needed:
Code:
cumul varx, gen (emp_varx) equal sort emp_varx replace emp_varx = emp_varx[_n-1] if emp_varx==1 gen c_emp_varx = invnormal(emp_varx)
Comment