I have an excel sheet I downloaded as a csv file. The number of observations is over 150,000. I imported the csv file, and noticed some things were off. After checking the number of observations with the original file, the number of observations in the imported file was at around 141,000. I was wondering if anyone knows why a fair amount of observations were dropped after importing the file. (I find this so strange. Also, as a small FYI, I am running on Stata 14).
This does not happen when I import the data as an excel file (.xlsx). However, when I import the excel file as a .xlsx, it runs slower and my variables turn into string variables. I have tried to destring them with destring, replace but it does not destring and reads the variables as non-numeric. I am a little bit at a loss. Thanks for any help and/or leads!
Related Posts with Dropped Observations after Importing Excel Sheet as a CSV File
reg or xtreg for unbalanced panel data?Hi, I have an unbalanced panel dataset for 2000+ companies from 1992-2018. Following was the xtset …
Combining side by side plots with CIs for 2 groups?Hi all, new Stata user here. I am trying to combine 2 graphs into one, but I want the dots/estimate…
only value between different variables unique value functionexample 1 1 0 =error 1 . 1 =1 . . . =. clear input float(infratentorial_sw_cr1 infratentorial_sw_cr…
idiosyncratic volatility using rangestatHi, I am calculating idiosyncratic volatility based on previous 1 month and previous 3 months daily…
Marginsplot interpretationDear all on Statalist, I am posting to ask for your help on interpretation of marginsplot graph, es…
Subscribe to:
Post Comments (Atom)
0 Response to Dropped Observations after Importing Excel Sheet as a CSV File
Post a Comment