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
Difference in Difference (DiD) within GMMHello everyone, I am trying to work out how to complete a DiD (difference in difference) analysis w…
Problem with foreachHi dear member, I am a beginner in the use of foreach. I need help to execute this code: foreach v…
Do sum of all corresponding values in one column when other column has a certain valueI want to sum the column 'stat1' by the column 'Group' if it has a certain value, such as Group == '…
Increasing space for columns and row labels when tabulating resultsHello everyone, I am doing five fixed effects regressions with five different dependent variables. …
Issue with Clustering - Distance Measures (centroid, ward)Hello everyone, I'm struggeling with a problem, which is probably quite easy to resolve - but I was…
Subscribe to:
Post Comments (Atom)
0 Response to Read dta file from line n to end
Post a Comment