I have been using the syntax format below to replace the data in the columns with the relevant med_costs which has worked for 4 sets of columns. When I run the code for the eczema related column data with the costs listed in the med_costs column the below syntax isn't working.
gen Eczema_related=.
replace Eczema_related=med_costs if med_name_group=="Eczema_related"
Do you have any suggestions of how to fix this?
Related Posts with Replace function- no real changes issue
Generalized ordered logit model and clarification about thresholdsHi, I found a paper that estimates a generalized ordered logit model. The dependent variable is wea…
what a. means in a observation?Hello, I merged two databases and after that, some observations (cells) have a string "a." What does…
repeated time values within panelDear statalisters, I am asking you for help because when I run Code: xtset firm year I receive a …
XtsccDears, I have question regarding XTSCC. As I read this can be used to deal with cross-section depen…
How to interpret quadratic interaction in linear regression?In my linear regression, I am trying to see if there's an interaction between a categorical variable…
Subscribe to:
Post Comments (Atom)
0 Response to Replace function- no real changes issue
Post a Comment