R/asreml_funct.R
stats.spatial.Rd
stats.spatial
Internal routine that calculates goodness-of-fit statisitcs for a
specific fitted model provided as input. Statistics obtained are log-likelihood, AIC,
BIC, heritability based on predictor error variance (heritPEV, only for genotypes 'random'),
A-optimality value, and logarithm of D-optimality value,
stats.spatial(
object = NULL,
checks = FALSE,
solution = NULL,
preds = NULL,
k = 1,
ctable = NULL
)
model fit output for object class asreml. Genotype factor is called 'gen'
logical to indicate if checks were included in the model (default = FALSE)
data frame with the random solutions from asreml (BLUPs)
data frame with the predictions for genotypes (required to calculate Aopt, Dopt)
value 1 or 2 to be used for the denominator of heritabilty calculation (herit.PEV) (default = 2)
table with genotypes and checks (optional)
A table with goodness-of-fit statistics for models evaluated. This includes columns: number of variance components in the model (n.VC), log-likelihood (logL), Akaike information criteria (AIC), Bayesian information criteria (BIC), heritability based on variance components, heritability based on predictor error variance (heritPEV, only for genotypes 'random'), A-optimality value, and logarithm of D-optimality value.
# Example: Pending