Hi,
I’am new in the forum, I don’t know if I posted in good place for my question, this is my first message. I’am taking class about Inequality analysis, as i’am new in Stata i have problem with some commands used. I didn’t understand the following code:
gen transfer = 0
loca total_transfers = 0
local limit = 0
while `total_transfers' < 300 {
qui replace transfer=max(0, `limit'-income)
qui sum transfer
local total_transfers=r(sum)
local limit = `limit'+1
}
I understood the first line of the code, but the rest is not clear for me. Could you help me for understanding please? Thanks very much
Related Posts with Inequality analysis
Help!How could I draw a restricted cubic spline using linear regression?I am working on a project using linear regression and I want to draw a restricted cubic spline for r…
Error after -cem- command (coarsened exact matching)Hi all, Using Stata 17, I am trying to run coarsened exact matching commands (i.e., -cem-) introduc…
Combining multiple roc curvesHello all, I have used logit for multiple roc curves and am looking for how to put them all on the …
Regarding Interval data (generating more years and duplicating values)Dear, Can anyone help me to manage the data? I have interval data. Since the data are only availabl…
What is the reference for excluding a covariate if there is many missing observation?Normally, I exclude a covariate out of the regression equation if there are many missing observation…
Subscribe to:
Post Comments (Atom)
0 Response to Inequality analysis
Post a Comment