[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
Binary DV with reghdfe with too many negative predictionsHi Everyone, I want to run a probability model by using high-dimensional fixed effects to understan…
Generate a variableHello, I use Stata for the empirical part of my bachelor thesis and have not used Stata before so I…
Certainty equivalent - Portfolio ReturnsHi, I am looking for a Stata package that would calculate portfolio returns certainty equivalent us…
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…
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,…
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile invalid file specification
Post a Comment