I have a dataset where the variable x is a string. I need to keep only observations at which the first 2 characters in the variable x is capital letter. Can anyone tell me how to do it ?
Related Posts with keep observations if first 2 character of the string is capital letter
Coding a variable according to the substring of many variablesHello everyone. I have 96 variables called moisx, where x takes values between 1 & 96. Each of …
three dimension panel dataHi everybody I have a panel data with 3 variables: year, country and product. for each year I have 9…
Interpretation of the magnitude of regression coefficientsDear Statalisters, I am running a regression like this: Y = a + b1*X1 + b2*X2 + e Note that X1 and…
coefplot errorsHi guys! I have to do a replication project and still try to figure out what`s wrong with these com…
Cumulative return calculationHey all, Our dataset consists of monthly stockprices and returns of approximately 1700 firms betwee…
Subscribe to:
Post Comments (Atom)
0 Response to keep observations if first 2 character of the string is capital letter
Post a Comment