Hi,

I have carried out logistic regression in STATA to adjust for several patient characteristic variables that are thought to affect my outcome. I used the predict function to get estimates of the predicted probability of a positive outcome for each patient. Ultimately I would like to get monthly data to plot in a time series...before I carried out my regression I simply had raw numbers for my outcome by month, so I would like something similar.

I have two issues:

1. each patient has spent a proportion of their hospital stay in either 1 or several of 10 wards. Is it appropriate to multiply predicted probabilities by the proportion of time spent in a ward, would this give me the probability of a positive outcome on each ward?

2. to get data into a monthly time series would the sum of predicted probabilities for each month, or the mean of predicted probabilities for each month be more appropriate?

I realize that although I have posted in regression, it is actually maybe more of a probability problem.

Any advice would be greatly appreciated.

Thanks

I have carried out logistic regression in STATA to adjust for several patient characteristic variables that are thought to affect my outcome. I used the predict function to get estimates of the predicted probability of a positive outcome for each patient. Ultimately I would like to get monthly data to plot in a time series...before I carried out my regression I simply had raw numbers for my outcome by month, so I would like something similar.

I have two issues:

1. each patient has spent a proportion of their hospital stay in either 1 or several of 10 wards. Is it appropriate to multiply predicted probabilities by the proportion of time spent in a ward, would this give me the probability of a positive outcome on each ward?

2. to get data into a monthly time series would the sum of predicted probabilities for each month, or the mean of predicted probabilities for each month be more appropriate?

I realize that although I have posted in regression, it is actually maybe more of a probability problem.

Any advice would be greatly appreciated.

Thanks

Last edited: