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
Tabulate a variable to include a value for which there are no observationsHi, I am trying to tabulate a variable & then use matcell/matrow to build an output table with …
Creating ratio variable from two independent variables for panel dataHi all. I am using educational attainment data and I have data on female tertiary enrolment(%), male…
Marginal effects with IV estimationHello, I am trying to estimate the effect of private tutoring on learning outcomes (math ability). I…
Tabulate a variable to include a value for which there are no observationsHi, I am trying to tabulate a variable & then use matcell/matrow to build an output table with …
need some help for creating a graph.How to create a graph like this in stata? Array I have a change from baseline variable , but i can't…
Subscribe to:
Post Comments (Atom)
0 Response to Replace command
Post a Comment