[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
Intergenerational Income Mobility analysis - Matching child information to parents across rowsHi, I am using Stata 16 and carrying out analysis on intergenerational income mobility, using the U…
Destring-Ignore-Backtick Command with "Too Few Quotes" ErrorHi Everyone. Started using Stata a few weeks ago and now I am addicted! I am currently trying run th…
Error with -fre- (SSC) when using strings with Chinese (traditional) textWhen using -fre- from Ben Jann (on SSC) with string variables containing Chinese (traditional) text,…
Certainty equivalent - Portfolio ReturnsHi, I am looking for a Stata package that would calculate portfolio returns certainty equivalent us…
Logistic Additive Model, dfHow to include df in logistic model and generate graph like below with different degress of greedom?…
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile invalid file specification
Post a Comment