Hi. I have a dataset with neary one million individuals and their hospitalizations (> 1 hospitalization over time for each individual). How can I create a new, smaller dataset extracting only the last hospitalization for each individual? The variable 'hosp_id' has values from 1 to 25
Thank you in advance
Gerhard
Related Posts with Analyzing the data
invalid name r(198) when trying to drop placeholder values from datasetNew to Stata so this may be a stupid question. I am trying to drop placeholder values from a dataset…
Programming dummyI posted this question in a response to a topic earlier, but I am not sure whether that is the right…
Clopper-Pearson Confidence Intervals with Complex Survey DataHello, I am currently working with complex survey data in Stata14 and would like to calculate exact…
median survival time using interval censored dataHi statalisters, I'm looking to estimate the median survival time (plus IQR) overall for my interva…
Syntax for date format local macros based on c-class date value resulting in embedded leading spaceHello all, I frequently need to access files on a shared network that for reasons lost to time uses…
Subscribe to:
Post Comments (Atom)
0 Response to Analyzing the data
Post a Comment