Hi,
I have a string variable that some of its values consist of a combination of numbers and "X" (e.g., "01234X). The "X" character appears at the end. How can I replace the "X" with "9"(e.g., 01234X--> 012349).
Thanks
Nader
Related Posts with replacing "X" character within a string variable with "9"
Mata run-time error r(3001)Hello, I use Stata/IC 15.1. I can run regressions with it but when I try to get summary statistics …
ivreg2h: generated instrumentsDear All, I am using the ivreg2h user-written routine, which implements the procedure in Lewbel (20…
Panel data with repeated time values within panel r(451); due to multiple directorshipsDear all, I am writing my Master's thesis in Economics, and I am working on a data set on board of …
Replacing a data variable if data falls within a date rangeI have some data that was misclassified for a certain date range and would like to change using Stat…
logistic regression.Hae guys have been trying to figure out the command for testing linearity assumption for log odds vs…
Subscribe to:
Post Comments (Atom)
0 Response to replacing "X" character within a string variable with "9"
Post a Comment