cholost              package:bootstrap              R Documentation

_T_h_e _C_h_o_l_o_s_t_y_r_a_m_i_n_e _D_a_t_a

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

     n=164 men took part in an experiment to see if the  drug
     cholostyramine lowered blood cholesterol levels.  The men were
     supposed to take six  packets of  cholostyramine per day, but many
     actually took much less.

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

     data(cholost)

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

     A data frame with 164 observations on the following 2 variables.

     _z Compliance, a numeric vector

     _y Improvement, a numeric vector

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

     In the book, this is used as an example for curve fitting, with
     two  methods,  traditional least-squares fitting and modern
     'loess'.  In the book  is considered linear and polynomial models
     for the dependence of  Improvement  upon Compliance.

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

     Efron, B. and Tibshirani, R. (1993) An Introduction to the
     Bootstrap.  Chapman and Hall, New York, London.

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

     str(cholost)
     summary(cholost)
     plot(y ~ z, data=cholost, xlab="Compliance", 
                 ylab="Improvement")
     abline(lm(y ~ z, data=cholost), col="red")

