formula.nls              package:stats              R Documentation

_E_x_t_r_a_c_t _M_o_d_e_l _F_o_r_m_u_l_a _f_r_o_m _n_l_s _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Returns the model used to fit 'object'.

_U_s_a_g_e:

     ## S3 method for class 'nls':
     formula(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: an object inheriting from class '"nls"', representing a
          nonlinear least squares fit.

     ...: further arguments passed to or from other methods.

_V_a_l_u_e:

     a formula representing the model used to obtain 'object'.

_A_u_t_h_o_r(_s):

     Jose Pinheiro and Douglas Bates

_S_e_e _A_l_s_o:

     'nls', 'formula'

_E_x_a_m_p_l_e_s:

     data(Orange)
     fm1 <- nls(circumference ~ A/(1+exp((B-age)/C)), Orange,
       start = list(A=160, B=700, C = 350))
     formula(fm1)

