varIdent                package:nlme                R Documentation

_C_o_n_s_t_a_n_t _V_a_r_i_a_n_c_e _F_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     This function is a constructor for the 'varIdent' class,
     representing a constant variance function structure. If no
     grouping factor is present in 'form', the variance function is
     constant and equal to one, and no coefficients required to
     represent it. When 'form' includes a grouping factor with M > 1
     levels, the variance function allows M different variances, one 
     for each level of the factor. For identifiability reasons, the
     coefficients of the variance function represent the ratios between
     the variances and a reference variance (corresponding to a
     reference group level). Therefore, only M-1 coefficients are
     needed to represent the variance function. By default, if the
     elements in 'value' are unnamed, the first group level is taken as
     the reference level.

_U_s_a_g_e:

     varIdent(value, form, fixed)

_A_r_g_u_m_e_n_t_s:

   value: an optional numeric vector, or list of numeric values, with
          the variance function coefficients. If no grouping factor is
          present in 'form', this argument is ignored, as the resulting
          variance function contains no coefficients. If 'value' has
          length one, its value is repeated for all coefficients in the
          variance function. If 'value' has length greater than one, it
          must have length equal to the number of grouping levels minus
          one and names which identify its elements to the levels of
          the grouping factor. Only positive values are allowed for
          this argument. Default is 'numeric(0)', which results in a
          vector of zeros of appropriate length being assigned to the
          coefficients when 'object' is initialized (corresponding to
          constant variance  equal to one).

    form: an optional one-sided formula of the form '~ v', or '~ v |
          g', specifying a variance covariate 'v' and, optionally, a
          grouping factor 'g' for the coefficients. The variance
          covariate is ignored in this variance function. When a
          grouping factor is present in 'form', a different coefficient
          value is used for each of its levels less one reference level
          (see description section below). Several grouping variables
          may be simultaneously specified, separated by the '*'
          operator, like in '~ v | g1 * g2 * g3'. In this case, the
          levels of each grouping variable are pasted together and the
          resulting factor is used to group the observations. Defaults
          to '~ 1'. 

   fixed: an optional numeric vector, or list of numeric values,
          specifying the values at which some or all of the 
          coefficients in the variance function should be fixed. It
          must have names identifying which coefficients are to be
          fixed. Coefficients included in 'fixed' are not allowed to
          vary during the optimization of an objective function.
          Defaults to 'NULL', corresponding to no fixed coefficients.

_V_a_l_u_e:

     a 'varIdent' object representing a constant variance function
     structure, also inheriting from class 'varFunc'.

_A_u_t_h_o_r(_s):

     Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates
     bates@stat.wisc.edu

_S_e_e _A_l_s_o:

     'varWeights.varFunc', 'coef.varIdent'

_E_x_a_m_p_l_e_s:

     vf1 <- varIdent(c(Female = 0.5), form = ~ 1 | Sex)

