Hello, I am wondering if there is a way in Stata where you can extract both numbers and strings. I want to create a new variable that extracts everything that contains numbers and a "G". For example the new variable should contain 300G and 2x150G (see picture).
Related Posts with Extract numbers and strings
Merging two panel data set when name of countries differ slighltyI am using two different data sets from; one from World Bank and another one from IMF. The name of t…
common heterogeneity in Network meta-analysesHi, does anyone know how to estimate common heterogeneity in Network meta-analysis? I found the com…
Stata does not remember font size preferencesI'm running Stata 15 on Windows 10. Every time I open Stata, the fonts in all the windows are set t…
meqrlogit: logistic mulitilevel with TSCS data : Does it look correct? + questionsDear Statalists, I am new here in the forum. I have worked on a model for some time, and I am quit…
Mi predict basesurvHi all, I am having problems trying to get the baseline survivor function after mi predict. I am us…
Subscribe to:
Post Comments (Atom)
0 Response to Extract numbers and strings
Post a Comment