rmboundary.asrtests
and a REML likelihood ratio test is performed using reml.lrt.asreml.
If it is not significant and drop.ran.ns is TRUE, the term is permanently removed
from the model. Note that if boundary terms are removed, the reduced model may not
be nested in the full model in which case the test is not valid. For fixed terms,
the Wald tests are performed and the p-value for the term obtained. If it is not
significant and drop.fix.ns is TRUE, the term is permanently removed
from the model. A row is added to
test.summary for each term that is tested.choose.model.asrtests(terms.marginality=NULL, asrtests.obj,
alpha = 0.05, drop.ran.ns=TRUE, positive.zero = FALSE,
drop.fix.ns=FALSE, denDF = "default", dDF.na = "none",
dDF.values = NULL, trace = FALSE, update = TRUE,
set.terms = NULL, ignore.suffices = TRUE,
constraints = "P", initial.values = NA, ...)asrtests object for a fitted model that is a list
containing an asreml object, a wald.tab
data.frame with 4 columns, and a wald.asreml is called. Can be none
to suppress the computations, numeric for numerical methods,NA. If
dDF.na = "none", no subtitute denominator degrees of freedom
vector of values to be used when dDF.na = "supplied".
Its values will be used when denDF in a test for a fixed effect
is NA. This vector must be the same length as the nuTRUEthen update.asreml is called in testing models.
In doing this the arguments R.param and G.param are
set to those in the asreml object stored in aasreml-assigned names of the variance terms (i.e. the
information to the right of an "!", other than "R!") is to
be ignoterms. This vector
must be of length one or the same length as terms.
If it iterms. This vector
must be of length one or the same length as terms.
If it is of lengasreml and wald.asreml via
testranfix.asrtests.asrtests.obj: anasrtestsobject, containing
theasremlobject correspondiing to the final fit,
awald.tabdata.frame, and atest.summarydata.framethat contains a record of the testing of the terms
(seeasrtestsfor more details);sig.tests: acharacter vectorwhose elements are the
the significant terms amongst those tested.asrtests, testranfix.asrtests,
testrcov.asrtests, reml.lrt.asreml,
rmboundary.asrtests,
newfit.asreml, addrm.terms.asrtests,
sig.devn.reparam.asrteststerms.treat <- c("Sources", "Type", "Species",
"Sources:Type", "Sources:Species")
terms <- sapply(terms.treat,
FUN=function(term){paste("spl(xDay):",term,sep="")},
simplify=TRUE)
terms <- c("spl(xDay)",terms)
marginality <- matrix(c(1,0,0,0,0,0, 1,1,0,0,0,0, 1,0,1,0,0,0,
1,0,1,1,0,0, 1,1,1,1,1,0, 1,1,1,1,1,1), nrow=6)
rownames(marginality) <-terms
colnames(marginality) <-terms
choose <- choose.model.asrtests(marginality, current.asrt,
pos=TRUE)
current.asrt <- choose$asrtests.objRun the code above in your browser using DataLab