Hello all- I feel like there is an easy solution to this but I just can't see how to do it. I have data representing hours of observation in a medical ICU, across 4 hospitals. One observation=one hour. Within that hour, there will be staff coverage from between 1 and up to 8 nurses. These are listed as variables nurse_ID_1, nurse_ID_2, etc. The are between 20 and 28 different nurses providing coverage over the study period, depending on the hospital. I have a separate data set which contains information on total years of experience for each nurse, by nurse ID. I would like to generate a variable in my main data set which represents total number of years of experience available from the nursing staff for that shift hour. Any thoughts on how?
Related Posts with Help with data set-up
sort row with string variables?Dear All, Is it possible to sort "string" variable? Suppose that the data set is Code: * Example ge…
How to calculate year in month with conditionsDear all, Year of birth and month of birth of each individual in a given dataset, now I want to gen…
Interpreting Sargan-Hansen TestsHi all, I am running diff GMM using Sebastian's xtdpdgmm command. However, I am not sure how to int…
How to generate a variable which takes for every combination another value?Dear all I have a question. I have a dataset with lots of different variables and want to generate a…
Comparing coefficients while keeping difference between other coefficients constant in mixed modelDear Statalist users, I would like to compare whether the slope is statistically different between …
Subscribe to:
Post Comments (Atom)
0 Response to Help with data set-up
Post a Comment