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
Box-Tidwell Test for Linearity of Logit Regression and RemediesDear all, I am using a Logit Regression to see if companies did recover to their pre-crisis ROA lev…
multproc (Why am I getting the same corrected P value)Dear all, I am using the following command to correct for multiple testing. However I keep getting t…
One line code for dividing all countries by one specific countryI need to divide all countries HS code values by Australia. What code will be the most efficient one…
Additional Scalars not Showing Up in Esttab Table - TestparmHi, I'm running four cox models assessing the effect of interactions between different types of soci…
invalid name J error r(198);Good afternoon guys, I am very new at Stata and i was trying to learn a code below and it give me er…
Subscribe to:
Post Comments (Atom)
0 Response to Extract numbers and strings
Post a Comment