Dear Stata users,
I'd like your advice because I have been stuck. I have a dataset and I run some models, keeping the coefficients as a new dataset of 10rows and 20variables/ columns. All good till this point. In the new dataset (that of the coefficients) all variables are float and will be used to generate overlaid two-way graphs. I'm using the code that you can see below and the output is an error that the local variable (let's say main_2 cannot be found. Any idea what I should do...
[foreach s in 2 3 4 5 7 8 9 {
local s `s'
local main_`s'= age_`s'c1
local mainlb_`s'=age_`s'c3
local mainub_`s'=age_`s'c4
local ci_`s'
}][/CODE]
I'd like your advice because I have been stuck. I have a dataset and I run some models, keeping the coefficients as a new dataset of 10rows and 20variables/ columns. All good till this point. In the new dataset (that of the coefficients) all variables are float and will be used to generate overlaid two-way graphs. I'm using the code that you can see below and the output is an error that the local variable (let's say main_2 cannot be found. Any idea what I should do...
[foreach s in 2 3 4 5 7 8 9 {
local s `s'
local main_`s'= age_`s'c1
local mainlb_`s'=age_`s'c3
local mainub_`s'=age_`s'c4
local ci_`s'
}][/CODE]
Comment