[previous code]
foreach q in ca cb cc cd ce {
preserve
gen var = "`q'"
tempfile ``q''
save ``q'', replace
restore
}
use `ca' // THIS RETURNS ERROR r(198) invalid file specification
foreach g in cb cc cd ce {
append using ``g''
}
tempfile alldc
save `alldc', replace
...
I do not see why I'm returning the error; previously in the code, I have saved tempfiles and then used another tempfile with " use `tempfile' " and it has worked fine. Why not on this occasion?
Related Posts with Tempfile invalid file specification
Ivregress 2sls error "r(301)" last estimates not found.Hi everyone, I am using portable Stata 16. I need to run 2sls regression of y on x with instrument …
Looping using list of var with similar prefixHi everyone! I'm getting stuck with something probably silly. I have a number of variables that sh…
Issues using esttabHi All, I'm now trying to use esttab for generating the table: Could you please explain why I don't …
Referring to the last Variable in A DatasetI'm working with Johns' Hopkins COVID-19 data. It comes in wide format and I must reshape it. The is…
Kitagawa-Oaxaca-Blinder Panel Data Model - Interventionist Approach / Oaxaca Panel Suggestions?Does anyone have any advice on implementing Kroger and Hartmann's (August 25, 2021) interventionist …
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile invalid file specification
Post a Comment