I have data in string as shown below
data1 data2
NA NA
NA NA
NA NA
NA 8415739
NA 10024002
N 12057882
N 10759322
N 11305650
N 10937087
N 11463371
N 11287917
N 12720750
N 14849447
N 15542380
N 17368642
N 20738561
I want to replace NA observation to missing(.)
I tried this command
replace data1=. if data1==NA stata return error "NA not found"
Can anybody help me on this please
Related Posts with Removing NA Across var
Unpaired t-test with weightHello, I'm dealing with the descriptive statistics for a data set. Two variables related to paterna…
Constraints on interaction coefficientsDear Statalist members, english is not my native language, if something should be incomprehensible,…
Fuzzy matching: choosing potential matches (reclink/matchit)Does anyone know how reclink chooses which potential matches to report? Does it effectively sort the…
Dealing with singular covariance matrix in Seemingly Unrelated Regression (sureg)Dear all : Thank you for your help in advance. I’m the user of Stata MP/16.0. I have a panel data…
Reduced sample size in time trends analysisHi, I have an indicator variable EventIndicator, which takes the value 1 if a firm is headquartered …
Subscribe to:
Post Comments (Atom)
0 Response to Removing NA Across var
Post a Comment