LDEsysMat                package:nlme                R Documentation

_G_e_n_e_r_a_t_e _s_y_s_t_e_m _m_a_t_r_i_x _f_o_r _L_D_E_s

_D_e_s_c_r_i_p_t_i_o_n:

     Generate the system matrix for the linear differential equations
     determined by a compartment model.

_U_s_a_g_e:

     LDEsysMat(pars, incidence)

_A_r_g_u_m_e_n_t_s:

    pars: a numeric vector of parameter values.

incidence: an integer matrix with columns named 'From', 'To', and
          'Par'.  Values in the 'Par' column must be in the range 1 to
          'length(pars)'.   Values in the 'From' column must be between
          1 and the number of compartments. Values in the 'To' column
          must be between 0 and the number of compartments.

_D_e_t_a_i_l_s:

     A compartment model describes material transfer between 'k' in a
     system of 'k' compartments to a linear system of differential
     equations. Given a description of the system and a vector of
     parameter values this function returns the system matrix.

     This function is intended for use in a general system for solving
     compartment models, as described in Bates and Watts (1988).

_V_a_l_u_e:

     A 'k' by 'k' numeric matrix.

_A_u_t_h_o_r(_s):

     Douglas Bates bates@stat.wisc.edu

_R_e_f_e_r_e_n_c_e_s:

     Bates, D. M. and Watts, D. G. (1988), _Nonlinear Regression
     Analysis and Its Applications_, Wiley, New York.

_E_x_a_m_p_l_e_s:

     # incidence matrix for a two compartment open system
     incidence <-
       matrix(c(1,1,2,2,2,1,3,2,0), ncol = 3, byrow = TRUE,
        dimnames = list(NULL, c("Par", "From", "To")))
     incidence
     LDEsysMat(c(1.2, 0.3, 0.4), incidence)

