Hello am new to stata, the task that am trying to achieve is to replace a numeric value with a string, but it keeps on saying type mismatch. However the type of the variable is str8.
I want to replace AB which is 1 with a string value. Am using "replace AB="my string" if "var"="value"
Related Posts with Replace command
Panel specification- choosing the best modelHi, I try to model panel data with N=28 and T=15 (tsset number year). I have one binary variable in …
Plotting marginal effects, confidence intervals after bootstrapDear listers, I have searched the manual and dug through the list but have come up empty. So apolog…
Sampling in a cross-sectional stepped-wedgeHi all, I am aiming to simulate stepped-wedged data for a cross-sectional design (new set of indivi…
How do I interpret a log level and log log model when my independent variable is already a percentage?Hi everyone I have a regression in which I would like to estimate the effect of migrant share (fro…
Estimate dynamic discrete choice (2 periods)Hello, I need to estimate a 2 period choices model. I understand the basic idea of estimating choic…
Subscribe to:
Post Comments (Atom)
0 Response to Replace command
Post a Comment