SSbiexp                 package:nls                 R Documentation

_B_i_e_x_p_o_n_e_n_t_i_a_l _m_o_d_e_l

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

     This `selfStart' model evaluates the biexponential model function
     and its gradient.  It has an `initial' attribute that  creates
     initial estimates of the parameters `A1', `lrc1', `A2', and
     `lrc2'.

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

     SSbiexp(input, A1, lrc1, A2, lrc2)

_A_r_g_u_m_e_n_t_s:

   input: a numeric vector of values at which to evaluate the model.

      A1: a numeric parameter representing the multiplier of the first
          exponential.

    lrc1: a numeric parameter representing the natural logarithm of the
          rate constant of the first exponential.

      A2: a numeric parameter representing the multiplier of the second
          exponential.

    lrc2: a numeric parameter representing the natural logarithm of the
          rate constant of the second exponential.

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

     a numeric vector of the same length as `input'.  It is the value
     of the expression
     `A1*exp(-exp(lrc1)*input)+A2*exp(-exp(lrc2)*input)'. If all of the
     arguments `A1', `lrc1', `A2', and `lrc2' are names of objects, the
     gradient matrix with respect to these names is attached as an
     attribute named `gradient'.

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

     Jose Pinheiro and Douglas Bates

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

     `nls', `selfStart'

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

     library( nls )
     data( Indometh )
     Indo.1 <- Indometh[Indometh$Subject == 1, ]
     SSbiexp( Indo.1$time, 3, 1, 0.6, -1.3 )  # response only
     A1 <- 3; lrc1 <- 1; A2 <- 0.6; lrc2 <- -1.3
     SSbiexp( Indo.1$time, A1, lrc1, A2, lrc2 ) # response and gradient
     getInitial(conc ~ SSbiexp(time, A1, lrc1, A2, lrc2), data = Indo.1)
     ## Initial values are in fact the converged values
     fm1 <- nls(conc ~ SSbiexp(time, A1, lrc1, A2, lrc2), data = Indo.1)
     summary(fm1)

