Hi everyone,
I'm working with a dataset that has hundreds of variables, numeric as well as strings. Missing values are indicated in different ways in the data set (., .n, .r for numeric variables). I want to homogenize the missing values (i.e. replace with . for numeric variables). See a microcosm of the data appended. Looping doesn't work as some variables are strings and others are numeric. Is there a way around this?Array
Related Posts with How do I replace a certain value across a dataset that has string as well as numeric variables?
one sided test of proportions using svyI am trying to do a one sided test of proportions with survey data. I've svyset the data. Normally I…
Foreach loopHi all, I please have another question. So I have variables Revenue_GDP, Expenditure_GDP, Consumpt…
Statistical significance between two discrete variablesDear Stata users: I have a variable called delay which is the number of days that a firm waited to d…
How to construct a new variable by singling out one or more words from a longer phrase?I want to have a new variable which is constructed by taking out one or more words after "Battle of …
Needed new variable which should list duplicates with respect to industry codes and restarts as the industry code changes Hello Respected Experts, Thanks a lot for previous help. @Carlo Lazzaro, sir you provided a Stata …
Subscribe to:
Post Comments (Atom)
0 Response to How do I replace a certain value across a dataset that has string as well as numeric variables?
Post a Comment