Dear all,
If I have a database on STATA with multiple rows for each patient (due to multiple outpatient visits over time) how can I select just only the first row for each patient? I will past below an example of this database:
ID Patient sex age
101 0 65
101 0 65
101 0 65
102 1 59
102 1 59
102 1 59
Related Posts with How to select a subset of data from a full database
Loop for generating new variablesHi all, I am a new user to STATA--can you help me loop the generate new variable command? Is there a…
Looping replace functionHello all, I am new to STATA and trying to loop replace function. Is there a way to improve my code?…
Combine two age group variables, tell stata to use youngest ageHi, I am a criminology student analysing survey data. I have two age grouped variables which I would…
Retrieve the "at legend" on top of margins tableHi, I'm using margins to calculate about 3600 predicted values in a loop, using the option at() wit…
Sorting CIs in a ciplot commandHi, I want to plot the CIs for a proportion by country. It would be useful if I could display the C…
Subscribe to:
Post Comments (Atom)
0 Response to How to select a subset of data from a full database
Post a Comment