Loblolly              package:datasets              R Documentation

_G_r_o_w_t_h _o_f _L_o_b_l_o_l_l_y _p_i_n_e _t_r_e_e_s

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

     The 'Loblolly' data frame has 84 rows and 3 columns of records of
     the growth of Loblolly pine trees.

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

     Loblolly

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

     This data frame contains the following columns:

     _h_e_i_g_h_t a numeric vector of tree heights (ft).

     _a_g_e a numeric vector of tree ages (yr).

     _S_e_e_d an ordered factor indicating the seed source for the tree.
          The ordering is according to increasing maximum height.


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

     Kung, F. H. (1986), Fitting logistic growth curve with
     predetermined carrying capacity, in _Proceedings of the
     Statistical Computing Section, American Statistical Association_,
     340-343.

     Pinheiro, J. C. and Bates, D. M. (2000) _Mixed-effects Models in S
     and S-PLUS_, Springer.

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

     require(stats); require(graphics)
     plot(height ~ age, data = Loblolly, subset = Seed == 329,
          xlab = "Tree age (yr)", las = 1,
          ylab = "Tree height (ft)",
          main = "Loblolly data and fitted curve (Seed 329 only)")
     fm1 <- nls(height ~ SSasymp(age, Asym, R0, lrc),
                data = Loblolly, subset = Seed == 329)
     summary(fm1)
     age <- seq(0, 30, length.out = 101)
     lines(age, predict(fm1, list(age = age)))

