exampleclos {changeLOS} | R Documentation |
An example program estimating change in length of stay associated with an intermediate event.
exampleclos()
An object of class c('clos'). The object is a list of
cLOS |
change in LOS |
trans |
an object of class 'trans' |
e.given.1 |
estimates E(LOS|X_s = intermediate event) for all observed transition times s, where X_s denotes the state by time s |
e.given.0 |
estimates E(LOS|X_s = initial state) for all observed transition times s, where X_s denotes the state by time s |
phi2 |
weighted average of the difference between phi2.case and phi2.control |
phi2.case |
estimates E(LOS 1(X_LOS = discharge)|X_s = intermediate event) |
phi2.control |
P(X_LOS = discharge|X_s = intermediate event) E(LOS|X_s = initial state) |
phi3 |
weighted average of the difference between phi3.case and phi3.control |
phi3.case |
estimates E(LOS 1(X_LOS = death)|X_s = intermediate event) |
phi3.control |
P(X_LOS = death|X_s = intermediate event) E(LOS|X_s = initial state) |
empty.1 |
event times with the group `intermediate, but no terminal event yet' being empty |
empty.0 |
event times with the group `no intermediate or terminal event yet' being empty |
weights |
weights for the weighted average |
w.times |
time points corresponding to the weights |
called |
how the function was called |
patients |
total number of observed patients |
patients.discharge |
number of patients being discharged |
patients.death |
number of patients who die |
patients.cens |
number of patients being censored, i. e. for whom neither discharge or death was observed |
cases |
number of patients who experienced the IE |
cases.discharge |
number of patients who experienced the IE being discharged |
cases.death |
number of patients who experienced the IE and died |
cases.cens |
number of patients who experienced the IE and were censored |
required packages: survival
Matthias Wangler mw@imbi.uni-freiburg.de