View source: R/createMegaEnv.R
predict.megaEnv | R Documentation |
This function calculates Best Linear Unbiased Predictors (BLUPS) and associated standard errors based on a set of mega environments.
## S3 method for class 'megaEnv'
predict(
object,
...,
trials = names(object$TD),
useYear = FALSE,
engine = c("lme4", "asreml")
)
object |
An object of class megaEnv. |
... |
Further parameters passed to either |
trials |
A character string specifying the trials to be analyzed. If not supplied, all trials are used in the analysis. |
useYear |
Should year be used for modeling (as years within
trials). If |
engine |
A character string specifying the engine used for modeling. |
A list consisting of two data.frames, predictedValue
containing BLUPs per genotype per mega environment and standardError
containing standard errors for those BLUPs.
Other mega environments:
gxeMegaEnv()
,
plot.megaEnv()
## Compute mega environments for TDMaize.
geMegaEnv <- gxeMegaEnv(TD = TDMaize, trait = "yld")
## Compute BLUPS and standard errors for those mega environments.
megaEnvPred <- predict(geMegaEnv)
head(megaEnvPred$predictedValue)
head(megaEnvPred$standardError)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.