Using this excellent advise, I am running a loop to read in a 60GB dta file and save it in chunks (after some data preprocessing). Unfortunately, I do not know the total number of observations and so the `use` command does not execute when asking to read in more data than is avilable:
```Stata
use `usevars' in 210000001/220000000 using "a_large_dta_file.dta", clear
```
The dataset appears to contain less than 220000000 observations, but I do not know how many. I am looking for and `endoffile` operator or something in that spirit to circumvent this problem. Manually I verified that at least 210001001 exist, but this won't help much.
---
Crossposted on Stackoverflow (https://stackoverflow.com/questions/...-line-n-to-end)
Related Posts with Read dta file from line n to end
Instrument set from initial period regressionHi I am running af 2sls model with panel data where I on average have 6 observation for each indivi…
Saving first-stage F-statistic with -ivprobit, twostep-I am running -ivprobit, twostep first- and want to capture the first-stage F-statistic. The e(return…
Error in forestplot: option lalign() not allowedHello, on running the "metan" command, metan OR ORlci ORuci, label(namevar=id) wgt(bweight) first(0.…
Cluster by firmHi- does clustering by firm has any impact on coefficient (or on Constant)? I read it reduces coeffi…
Gravity model estimation using PPML with fixed effectsHello All, I'm trying to estimate GVC trade flows in a gravity model, using the PPML method. My dep…
Subscribe to:
Post Comments (Atom)
0 Response to Read dta file from line n to end
Post a Comment