in the case that I want to run the analysis of a group of variables by quintiles and considering also a dummy (let's say gender), how could I write this command?
i define a local
local quint_sum num_employees time_psp furthest_loc_time
quintiles variable:prof_quint
dummy variable: gender
loop I am trying to use:
foreach x of numlist 1/5 {
foreach y of local operation_dec {
foreach k of varlist gender {
tab `y' if prof_quint==`x' & gender==`k'
}
}
}
Related Posts with nested loops
3SLS with non-continuous endogenous variablesHello Everyone, Much thanks for the opportunity provided for clarification of doubts and guidance on…
fix effect and clustering residualsHello all, I have a panel of prices of 4 products, in 200 towns, posted by 20 compnies for 12 month…
Interpretation of Interaction termsDear Statalisters I run following regression for panel data of children: PPVT being a test score, a…
regression of the panel data: dependent variable and independent variable is the same variable in different groupHi, I am now running a panel regression, for example, return in year 2018=c+return in year 2010-2017…
Sts graph truncateCiao, I am conduct survival analysis and need to truncate x-axis. The survival time data I have obta…
Subscribe to:
Post Comments (Atom)
0 Response to nested loops
Post a Comment