Description Usage Arguments Details Value Examples
Log-likelihood test for comparing terms in ASReml-R models
1 2 3 4 5 6 7 8 |
model.obj |
An ASReml-R model object |
rand.terms |
Random terms from the model. Default is NULL. |
resid.terms |
Residual terms from the model. Default is NULL. |
decimals |
Controls rounding of decimal places in output. Default is 3 decimal places. |
numeric |
Return p-values as numeric? Default is that they are characters, where very small values shown as less than a small number. See |
quiet |
Logical (default: |
Typically p-values cannot be 0, and are usually just below some threshold of accuracy in calculation of probability.
A dataframe containing the results of the test.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
library(asreml)
dat <- asreml::oats
dat <- dat[order(dat$Row, dat$Column),]
#Fit ASReml Model
model.asr <- asreml(yield ~ Nitrogen + Variety + Nitrogen:Variety,
random = ~ Blocks + Blocks:Wplots,
residual = ~ ar1(Row):ar1(Column),
data = dat)
oats.logl <- logl.test(
model.obj = model.asr, rand.terms = c("Blocks", "Blocks:Wplots"),
resid.terms = c("ar1(Row)", "ar1(Column)")
)
oats.logl
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.