Dear Statalist,
I would like to be able to select only those cases in "subp" variable whose value ends with "-1" at the end. Because the variable "subp" is a string variable, I could not find an efficient code. I would really appreciate if you could help me with a suitable code to solve this problem. Thanks. Ramu
. tab subp
subp | Freq. Percent Cum.
------------+-----------------------------------
15-0394-1 | 1 0.91 0.91
15-0394-2 | 1 0.91 1.82
15-0394-3 | 1 0.91 2.73
15-0453-1 | 1 0.91 3.64
15-0453-2 | 1 0.91 4.55
Related Posts with String variable- code group certain cases- regexm(); regexr(); regexs()???
Convergency not achieved in simulationDear all, I'm running a simulation with GEEs, to avoid the convergency problem, I have limited the …
esttab and global macro for filepath of output tableI am trying to save output tex files in a specific directory after running a batch of regressions. …
Problem with instrumental variable regressionI am looking at the effect of sport participation on happiness. Happiness is my dependent variable, …
Significance of regressor effect with and without moderatorHi, I am running fe panel data regression on a set of companies to explore the effect of firm geogra…
Spatial weight matrix and spillover effects in Spatial Durbin ModelDear All, I have a little confusion about the use of spatial weight matrix that I want to get clari…
Subscribe to:
Post Comments (Atom)
0 Response to String variable- code group certain cases- regexm(); regexr(); regexs()???
Post a Comment