Hello,
I'm a new user to Stata and not very familiar with this environment. I tried to look up in the help guide but was unsuccessful so far ... Hence this very basic question here :
In a medical clinical trial, I have 150 patients, meaning 150 observations
For each patient, I have a variable that identifies them with an anonymous patient number,
They have been included in this trial from may 2016 until june 2019, I have a variable that gives the date of signature of the agreement (date format)
They have been included thanks to 22 centers different around the globe. The variable identifying the center is named "siteid"
I easily got the distribution of the number of patients included / center via this command :
hist siteid, frequency witdh(1)
Now, I would want to get :
- the median of included patient / center and the associated standard deviation
- the median of included patient / year / center and the associated standard deviation
It's quite easily done on Excel, but I'm pretty sure there must be a very easy way to do it on Stata too ! I know it's a very basic question and I apologize for it ; but I'm struggling ... and i really would like to learn it on Stata
Thank you for your help !
Patrice
I'm a new user to Stata and not very familiar with this environment. I tried to look up in the help guide but was unsuccessful so far ... Hence this very basic question here :
In a medical clinical trial, I have 150 patients, meaning 150 observations
For each patient, I have a variable that identifies them with an anonymous patient number,
They have been included in this trial from may 2016 until june 2019, I have a variable that gives the date of signature of the agreement (date format)
They have been included thanks to 22 centers different around the globe. The variable identifying the center is named "siteid"
I easily got the distribution of the number of patients included / center via this command :
hist siteid, frequency witdh(1)
Now, I would want to get :
- the median of included patient / center and the associated standard deviation
- the median of included patient / year / center and the associated standard deviation
It's quite easily done on Excel, but I'm pretty sure there must be a very easy way to do it on Stata too ! I know it's a very basic question and I apologize for it ; but I'm struggling ... and i really would like to learn it on Stata
Thank you for your help !
Patrice
Comment