Dear all,
Patient number is a key identifier variable. For example Patients have come for 3 visits, here I want a code to see how many patients have attended all the 3 visits. Hence, I need to generate a new variable with a total number of visits each patient has visited. Also, the dataset is in long format. please see attached example of the query. Thank you
Related Posts with To generate a new variable to subset a dataset based off number of visit a patient has attended
Wage distribution percentile differencesHi, everyone! Right now I have to do research about how the minimum wage affects wage distribution.…
KINKYREG: new Stata command for instrument-free inference in linear regression models with endogenous regressorsI just released a brand-new Stata package called kinkyreg, which I developed jointly with Jan Kiviet…
File read and tokenize localsHi everyone! I have been trying to tokenize locals that are produced by file read. However, weird t…
Multiple hypothesis testing command updatedFor those interested in multiple hypothesis testing, a new version of wyoung is now available on SSC…
Calculate row medianIn my panel data (firm-year), I was able to calculate the row mean using egen RowMean=rmean(Var1 Var…
Subscribe to:
Post Comments (Atom)
0 Response to To generate a new variable to subset a dataset based off number of visit a patient has attended
Post a Comment