Hi,
I have recently created a new variable mothergrad1 and there are empty values when I used the function count. However, when I wanted to replace the empty values with 0, no real changes were made. Why is that so?
This was stata output:
count if mothercollegegrad1==.
26344
replace mothercollegegrad1=0 if mothercollegegrad1==.
(0 real changes made)
Thank you.
Related Posts with Why Stata doesn't recognize empty values
Optimization does not convergeDear All, I have a black-box data generation routine, which depends on three parameters A,B,C. I ge…
How to drop specific columns and rows in matrix?I created a matrix named "m" with the following commands. Is there a simple way to remove all the r…
How to add R-squared in -esttab- regression? Code: sysuse auto, clear eststo: regress price weight mpg eststo: regress price weight…
problem with multiple if conditionsI am having issues with using multiple if conditions with replace function. I have two variables i.e…
How to transfer my string variable to date variable? Code: * Example generated by -dataex-. To install: ssc install dataex clear input str10 week float …
Subscribe to:
Post Comments (Atom)
0 Response to Why Stata doesn't recognize empty values
Post a Comment