i have 26 variables that i have log transformed using the code below.
Code:
foreach var of varlist age-pulse { gen ln`var' = log(`var') }

Code:
local j = 1 local names foreach var of lnage-lnpulse { hist `var', normal, name(graph`j') local names `names' graph`j' local ++j } graph combine `names'
0 Response to creating multiple histograms using a loop
Post a Comment