Good morning. I would like some help regarding how to label concatenated variables. I have almost 4000 observations and I am a little confused about how to group the observed patterns. i have put an example below.
tab vistfrfam_time if deceased==1
vistfrfam_time Freq. Percent Cum.
-1-1-1-1-1-1-1-1-1-1 7 0.19 0.19
-1-1-1-1-1-1-1-1-1. 11 0.29 0.48
-1-1-1-1-1-1-1-1.. 10 0.27 0.74
-1-1-1-1-1-1-1... 27 0.72 1.46
-1-1-1-1-1-1.... 29 0.77 2.23
-1-1-1-1-1..... 31 0.82 3.05
-1-1-1-1...... 60 1.59 4.65
-1-1-1....... 96 2.55 7.19
-1-1........ 120 3.19 10.38
-8-9-9-9-9-1.... 1 0.03 10.41
-81-1....... 1 0.03 10.43
-82-921-1.... 1 0.03 10.46
-82121-1.... 1 0.03 10.49
-9-1........ 27 0.72 11.20
-9-9-1....... 23 0.61 11.81
-9-9-9-1...... 23 0.61 12.42
-9-9-9-9-1..... 17 0.45 12.87
-9-9-9-9-9-1.... 5 0.13 13.01
-9-9-9-9-9-9-1... 8 0.21 13.22
-9-9-9-9-9-9-9-1.. 4 0.11 13.33
-9-9-9-9-9-9-9-9-1. 5 0.13 13.46
-9-9-9-9-9-9-9-9-9-1 5 0.13 13.59
....-1-1-1-1-1-1 22 0.58 14.18
....-1-1-1-1-1. 23 0.61 14.79
....-1-1-1-1.. 22 0.58 15.37
....-1-1-1... 30 0.80 16.17
....-1-1.... 44 1.17 17.33
....-8-1.... 1 0.03 17.36
....-812-81-1 1 0.03 17.39
....-9-1.... 6 0.16 17.55
....-9-9-1... 2 0.05 17.60
....-9-9-9-1.. 9 0.24 17.84
....-9-9-9-9-1. 4 0.11 17.95
....-9-9-9-9-9-1 4 0.11 18.05
....1-1.... 111 2.95 21.00
....1-82-1.. 1 0.03 21.02
....1-9-1... 3 0.08 21.10
....1-9-9-1.. 3 0.08 21.18
....1-9-9-9-1. 2 0.05 21.24
....1-9-9-9-9-1 1 0.03 21.26
....1-911-1. 1 0.03 21.29
....11-1... 94 2.50 23.79
....11-9-1.. 5 0.13 23.92
....11-9-9-1. 1 0.03 23.94
....11-9-91-1 1 0.03 23.97
....111-1.. 73 1.94 25.91
....111-81-1 1 0.03 25.94
....111-9-1. 1 0.03 25.96
....111-9-9-1 1 0.03 25.99
....1111-1. 64 1.70 27.69
....1111-9-1 3 0.08 27.77
....11111-1 41 1.09 28.86
....11112-1 8 0.21 29.07
....1112-1. 9 0.24 29.31
....11121-1 10 0.27 29.57
....11122-1 2 0.05 29.63
....112-1.. 11 0.29 29.92
....1121-1. 6 0.16 30.08
Related Posts with Labelling group patterns in concatenated variable
Dynamic Panel Threshold regressionDear all, Lately we got a new command to deal with the endogeneity issues, "xthenreg", but still so…
Making it so that stset works when birth and death happen in the same yearI'm working on a project in which I need to perform survival analysis on a sample of firms. When I s…
Help on esttab keep optionI am running several models and only wanted to export selected regression coefficients to excel. I c…
Location Specific EffectsHello, I am estimating a regression model predicting the odds of openness to PREP among foreign born…
How to Lag Variables in a Three-Level Mixed Effects ModelDear Stata Listserv, I’m seeking help with how to lag variables in a three-level mixed effects mode…
Subscribe to:
Post Comments (Atom)
0 Response to Labelling group patterns in concatenated variable
Post a Comment