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
Merge monthly and daily observationsDear All, I have a small problem that might be easy to solve but I cannot find a way. Suppose I hav…
Summation of several rows using the if conditionHello, I want to write a code that creates a value which is the summation of several rows. I have n…
How to fix this loop to append files?I'm working with a group of datasets that involve different reports over time. Let's say there are 4…
fillin or expand?Dear All, The question is related to a previous post here. Now, the expanded data is Code: * Exampl…
using stabilized weights and teffects RAIm using manually calculated IPW, stabilized by prevalence of exposure (stabIPW) to achieve adequate…
Subscribe to:
Post Comments (Atom)
0 Response to Inequality analysis
Post a Comment