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?
SEM and the predicted latent variableHello I am doing a confirmatory factor analysis, using SEM, to construct three latent variables for…
Restricted cubic splines with cumulative average methodDear all, I am trying to conduct a restricted cubic spline to assess the potential non-linear associ…
Difference-in-difference with interactionsHi, I'm trying to estimate a straight forward Difference-in-Difference model to find the impact of …
Invalid syntax error when combining foreach and logout ttable2Hi, I am trying to output the ttable2 results of different groups. The code I am writing is as foll…
Multiple treatment years, Difference in differencesFriends, I am using panel data set for individuals * years. Individuals are treated at different y…
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