Dear Statalist users,
I am running a conditional risk set model (survival analysis), which entails having multiple observations per subject. I am building the descriptive statistics table for my paper, and I've been using the "estat sum" command in Stata IC 15.1. My intuition is that estat sum is calculating the sum of values for variable j and dividing it by total number of observations. This is NOT what I am looking for, as some subjects have more events than others. Is there any way to weight the calculation of mean values?
Many thanks.
My results look as follows:
Array
Related Posts with Descriptive statistics after regression: multiple observations per id
Why dummy variable is not correct?Dear Stata users, I am trying to create two dummy variables respecting a few conditions, but for so…
graph box plot with 6 variables and two groupsHey STATA I have tried (now for a couple of hours) to make an graph hbox with different variables 1…
Replacing values of one variable by specific value in anotherHi All, I have data that resembles the following: Code: * Example generated by -dataex-. To inst…
Multiple Legends and Reducing Variables with Four Panes in CoefplotHey there Stata users, I am trying to plot the results for a select number of independent variables…
variable does not uniquely identify observations in the using dataHi I'm working with two data bases but there they don't have the same observations. The first one be…
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive statistics after regression: multiple observations per id
Post a Comment