Dear Stata folks,
I have a dataset with patient_ids, days and a measurement(outcome). Patients may have more than one measurements per day. The number is unequal between patients and days. Let's say that it is the BP measurements.
The days are in %td format but not consecutive, since some patients may non have measured their BP a day and then measure it the next days. Patients are advised to do these measurements for 28 days but some did it for less and few others did so for more.
I want to create a consecutive day variable so as to have 0 measurements when they have not measured their BP, instead of having only the measurements for the days that they did measure.
Any help please? Whatever I saw in different posts doesn't work for my case.
Thank you in advance.
Related Posts with Create consecutive days with unequal number of obs per day
META ANALYSIS - meta regression -Prevalence studyHi everybody, I have to do a meta-analysis. The aim of this meta-analysis (37 studies) is THE preva…
Error r198 when using qui { commandI'm recreating a study for my final project and I'm using the code the economists used in the study …
extract duplicates list for which some other variable takes both possible valuesHello, I have data with 3 variables: Company_name (uniquely defined), owner_name (not uniquely defin…
Heckman Correction Rho=1 and some other issuesDear Statalisters, I have several issues and questions concerning the use of the Heckman correction…
problems with Generalized Least SquareHi Forum! I have a problem with GLS method. I'm not sure that the Stata command "xtgls" is correct f…
Subscribe to:
Post Comments (Atom)
0 Response to Create consecutive days with unequal number of obs per day
Post a Comment