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
Should the TWFE estimate results from the did_multiplegt command match those generated by reghdfe command?Hello everyone, I am using the -did_multiplegt- command developed by Clément de Chaisemartin Xavier…
unit root test short panelHi guys, I was wondering if it is possible to test for unit root on a T=2 panel dataset. I only have…
shortcut referring to independent variables for regressionHi STATA, I have a dataset with about 400 independent variables and 4 mill rows. I want to run a lo…
Searching distinct identifier in a folderHi everyone, I have the following issue. In one folder, I have stored different xlsx files. Each fi…
Help required with identifying observations between two datasetsHello, I am working with a dataset where I have identified 7,286 observations. These observations b…
Subscribe to:
Post Comments (Atom)
0 Response to Removing NA Across var
Post a Comment