linVarReg {VarReg}R Documentation

Linear mean and variance regression function

Description

linVarReg performs multivariate mean and multivariate variance regression. This function is designed to be used by the semiVarReg function.

Usage

linVarReg(
  dat,
  var.ind = c(2),
  mean.ind = c(2),
  para.space = c("all", "positive", "negative"),
  control = list(...),
  ...
)

Arguments

dat

Dataframe containing outcome and covariate data. Outcome data must be in the first column. Covariates for mean and variance model in next columns.

var.ind

Vector containing the column numbers of the data in 'dat' to be fit as covariates in the variance model. FALSE indicates constant variance option.

mean.ind

Vector containing the column numbers of the data in 'dat' to be fit as covariates in the mean model. 0 indicates constant mean option. NULL indicates zero mean option.

para.space

Parameter space to search for variance parameter estimates. "positive" means only search positive parameter space, "negative" means search only negative parameter space and "all" means search all.

control

List of control parameters. See VarReg.control.

...

arguments to be used to form the default control argument if it is not supplied directly

Value

linVarReg returns a list of output including:


[Package VarReg version 2.0 Index]