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
Getting Predicted Values for RegressionsHi all, I have a dataset of about 800 observations with 19 variables. One of the variables is a dep…
no observations to perfom with the code Code: asdoc cor gini_k decile incdegini eta agesquared ncomp married self_employed smallcity disav…
Identify a segment of a stringHi, I want to assign a binary code to each column, 1 if it contains information from the first row …
to get away from command ab is unrecognizedHi my question is simple, i get command ab is unrecognized how can I get away from this …
Plotting event study by monthArray Hi, I am trying to run and plot an event study, but my regression is not reporting any stati…
Subscribe to:
Post Comments (Atom)
0 Response to nested loops
Post a Comment