Learn R Programming

asremlPlus (version 2.0-2)

sig.devn.reparam.asrtests: This function reparamterizes each random (deviations) term involving devn.fac to a fixed term and ensures that the same term, with trend.num replacing devn.fac, is included if any other term with trend.num is included in terms.

Description

This function reparamterizes each random (deviations) term involving devn.fac to a fixed term and ensures that the same term with trend.num replacing devn.fac is included if any other term with trend.num is included in terms. It also ansures that any term with spl{trend.num} replacing devn.fac in a term being reparameterized is removed from the model.

Usage

sig.devn.reparam.asrtests(terms = NULL, asrtests.obj,
                          trend.num = NULL, devn.fac = NULL, 
                          denDF = "default", trace = FALSE, update = TRUE, 
                          set.terms = NULL, ignore.suffices = TRUE,
                          constraints = "P", initial.values = NA,...)

Arguments

terms
a character string vector giving the terms that are to be reparameterized.
asrtests.obj
an asrtests object for a fitted model that is a list containing an asreml object, a wald.tab data.frame with 4 columns, and a
trend.num
A character string giving the name of the numeric covariate that corresponds to devn.fac and is potentially included in terms in the fitted model.
devn.fac
A character string giving the name of the factor that corresponds to trend.num and is included in terms in the fitted model.
denDF
Specifies the enthod to use in computing approximate denominator degrees of freedom when wald.asreml is called. Can be none to suppress the computations, numeric for numerical methods,
trace
if TRUE then partial iteration details are displayed when ASReml-R functions are invoked; if FALSE then no output is displayed.
update
if TRUEthen update.asreml is called in removing and adding terms to the model. In doing this the arguments R.param and G.param are set to those in the asreml
set.terms
a character vector specifying the terms that are to have constraints and/or initial values set prior to fitting.
ignore.suffices
a logical vector specifying whether the suffices of the asreml-assigned names of the variance terms (i.e. the information to the right of an "!", other than "R!") is to be igno
constraints
a character vector specifying the constraints to be applied to the terms specified in terms. This vector must be of length one or the same length as terms. If it i
initial.values
a character vector specifying the initial values for the terms specified in terms. This vector must be of length one or the same length as terms. If it is of leng
...
further arguments passed to asreml via addrm.terms.asrtests.

Value

  • An asrtests object, which is a list containing:
    1. asreml.obj: anasremlobject containing the fit of the model after all boundary and singular terms have been removed;
    2. wald.tab: a 4-columndata.framecontaining a pseudo-anova table for the fixed terms produced bywald.asreml;
    3. test.summary: adata.framewith columnsterm,DF,denDF,pandaction. It contains a row for each term that is dropped, added or tested or a note that several terms have been added or removed.

See Also

asrtests, addrm.terms.asrtests, testranfix.asrtests, testrcov.asrtests, newfit.asreml, choose.model.asrtests

Examples

Run this code
current.asrt <- sig.devn.reparam.asrtests(choose$sig.terms, current.asrt, 
                                            trend.num = "xDay", devn.fac = "Date", 
                                            denDF = "algebraic")

Run the code above in your browser using DataLab