hello, everyone
I have this problem:
I have a variable x1 string and I have x2 byte...I need to create a dummy with X1 and X2 the values it has are 1 and 0 but since x1 this string I have a problem when I assign, I get less observations. With x2 I get the right amount of zeros....
I applied encode to x1, because destring doesn't work for me, and that error is generated, also the variable x1 has "???" in 3 observations,.
Do you think I should delete these observations first and try destroing again?
Related Posts with Cleaning Data Problem
panel regression analysis and skewed dataI am working with panel data and use xtlogit command to conduct multivariate regression analysis. Fo…
Efficient ways to increment dates by given intervalI am trying to achieve what I believe should be a relatively straight-forward task, which is to incr…
Omission of age in fixed effect regressionHello I am using the South African National Income Dynamics Survey (NIDS) panelset (waves 1 to 5). …
XTSCC does not allow interactionsHi all, I am trying to use xtscc in interaction and Stata won't recognize the command. This issue w…
Five-Year Running Average by Country-YearHi all, I'm a new user to Stata. I have a dataset with a variable for different countries and years,…
Subscribe to:
Post Comments (Atom)
0 Response to Cleaning Data Problem
Post a Comment