Hi everyone, first time here
I have a longitudinal data set with 3500 unique individuals that looks like something below but i want to have a new variable where each unique individual will be represented in one row and not appear multiple times.
I used this code [generate subjectID: subjectid = subjectid] to create the new variable which is a replica of the old variable but don't seem to know how to exclude all the repeat subjectid that appear more than once.
How do i proceed?
subjectid
1
1
2
3
4
4
4
5
...
3500
Thanks
Related Posts with How do i create a variable from a longitudinal dataset where i have one row for all the times a unique individual appears more than once
Measures to compare distributions and the Probability-Probability-PlotHi Statalisters, I want to compare the distributional fit of predicted values with the original dat…
Overlay corrtable and graph matrixDear all, I wonder if there is an easy way to draw a graph by overlaying the output from graph matr…
-vecrank- errorHey, I have a monthly time series data from 2005m1 to 2018m12. On visual inspection there are no gap…
new var calculated from group means of survey dataGreetings, I working on Stata 15 with survey data using pweights. I have created the bar graph belo…
Need help in probit model: probability that a developing country which is a WTO member faces a dispute.Hello! Hope you are all having a great week! I need help to calculate the probability that a devel…
Subscribe to:
Post Comments (Atom)
0 Response to How do i create a variable from a longitudinal dataset where i have one row for all the times a unique individual appears more than once
Post a Comment