exampleclos            package:changeLOS            R Documentation

_e_x_a_m_p_l_e _f_o_r _c_l_o_s

_D_e_s_c_r_i_p_t_i_o_n:

     An example program estimating change in length of stay associated
     with an intermediate event.

_U_s_a_g_e:

     exampleclos()

_V_a_l_u_e:

     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

_N_o_t_e:

     required packages: survival

_A_u_t_h_o_r(_s):

     Matthias Wangler mw@imbi.uni-freiburg.de

_S_e_e _A_l_s_o:

     'clos'

