los                package:robustbase                R Documentation

_L_e_n_g_t_h _o_f _S_t_a_y _D_a_t_a

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

     Length of stay for 201 patients that stayed at the University
     Hospital of Lausanne during the year 2000.

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

     data(los)

_F_o_r_m_a_t:

     Vector of integer values giving the length of stay (days):

     int [1:201] 16 13 17 4 15 24 59 18 33 8 ...

_D_e_t_a_i_l_s:

     These data may be used to estimate and predict the total resource
     consumption of this group of patients.

     Cf. Ruffieux, Paccaud and Marazzi (2000).

_S_o_u_r_c_e:

     The data were kindly provided by A. Marazzi.

     Cf. Hubert, M. and Vandervieren, E. (2006), p. 13-15.

_R_e_f_e_r_e_n_c_e_s:

     Ruffieux, C., Paccaud, F. and A. Marazzi (2000) Comparing rules
     for truncating hospital length of stay; _Casemix Quarterly_ *2*,
     n. 1.

     Hubert, M. and Vandervieren, E. (2006) _An Adjusted Boxplot for
     Skewed Distributions_, Technical Report TR-06-11, KU Leuven,
     Section of Statistics, Leuven. 
      <URL: http://wis.kuleuven.be/stat/robust/Papers/TR0611.pdf>

_E_x_a_m_p_l_e_s:

      summary(los) # quite skewed, with median(.) = 8
      plot(table(los))
      boxplot(los, horizontal=TRUE, add=TRUE, col = "red", axes=FALSE)
      ##-> "outliers" instead of "just skewed"

      hist(log(los))
      boxplot(log(los), add=TRUE, col=2, border=2, horizontal = TRUE, at = -1)

      if(R.version$arch == "x86_64") { ## FIXME -- bug in C code

        ## Hubert and Vandervieren (2006), p. 15, Fig. 11.
        adjbox(los, col = "gray", outcol = "red")
        boxplot(los, add = TRUE, staplewex = 0.2, outcex = 0.5, outpch = 4)
        title("adjbox(los) and boxplot(los) superimposed")
      }

