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
Stata do-editor settingsDear All, is there any way to preserve the option to show whitespace in the Stata's do-editor? (the…
candisc command and estat anova? Hello everyone, I have run the “candisc” command and need advice about how to get the R-squared, F …
Creating a new variable which are label values of other variableDear Statalist , I have a data of food item that people eat. The data stored as numeric and labelle…
Working with data frame: executing commands on all framesHi, I am pretty new in using data frames. I intend to execute commands on all frames after creating…
Sample may not include multiple panels error after trying to perform Breusch Godfrey test forDear Everyone, I am using panel data and I want to test for autocorrelation in my dataset. The data…
Subscribe to:
Post Comments (Atom)
0 Response to Help with data set-up
Post a Comment