Dear all,
A dataset with 11 variables was imported to STATA using File -> Import Excel spreadsheet. Then, Data -> Create or change data -> Convert variables from string to numeric was used.
Stata recognised two types of numeric variables: byte for dummy and double for other. Function "describe" identifies 184 observations, but a regression that I run provides me with only 142 observations.
Dataex reveals that some values were replaced into dots instead of numbers, however in the original excel file all values seem to be fine. It contains numerical values and there should not be any issues.
Could you please help me fix this problem?
I'm looking forward to any ideas on how it can be fixed
Related Posts with Convert variables to numeric results in data loss when a regression is run
Dropping variable and saving itHi everyone How can I Remove a variable from a dataset, but save it in such a way that you can mer…
Drop duplicates depending on two variablesHi, I am totally new to Stata (Version 17.0). I´ve got a data set icluding the variables ticker (so…
Regression TreeDear Users Does anyone have an experience with regression trees in stata, and how the CaRT package w…
Sargan test P value = 0 meaningHi What does a sargan test p value = 0 imply? does it mean my instruments are valid? I read that sa…
Extract data from 1000 regression tablesHi, I am using this command below for 1000 variables as an outcome. foreach outcome of varlist B-A…
Subscribe to:
Post Comments (Atom)
0 Response to Convert variables to numeric results in data loss when a regression is run
Post a Comment