gs_bayesian | R Documentation |
This function performs a cross validation using the Bayesian models.
gs_bayesian(
Pheno,
Geno,
traits,
folds,
model = "BGBLUP",
predictors = c("Env", "Line", "EnvxLine"),
is_multitrait = FALSE,
iterations_number = 1500,
burn_in = 500,
thinning = 5,
seed = NULL,
verbose = TRUE
)
Pheno |
( |
Geno |
( |
traits |
( |
folds |
( |
model |
( |
predictors |
( |
is_multitrait |
( |
iterations_number |
( |
burn_in |
( |
thinning |
( |
seed |
( |
verbose |
( |
A GSFastBayesian
object with the following attributes:
Pheno: (data.frame
) The phenotypic data.
Geno: (matrix
) The genotypic data.
traits: (character
) The traits' names.
is_multitrait: (logical(1)
) Is multitrait analysis?
Predictions: (data.frame
) The predictions of cross validation. This
data.frame
contains the Trait
, Fold
, Line
, Env
, Predicted
and Observed
columns.
execution_time: (difftime
) The execution time taken for the analysis.
folds: (list
) The folds used in the analysis.
model: (BayesianModel
) The model fitted.
model_name: (character(1)
) The name of the model.
iterations_number: (numeric(1)
) Number of iterations to fit the model.
burn_in: (numeric(1)
) Number of items to burn at the beginning of the
model.
thinning: (numeric(1)
) Number of items to thin the model.
Other gs_models:
gs_fast_bayesian()
data(Maize)
folds <- cv_kfold(nrow(Maize$Pheno), k = 5)
results <- gs_bayesian(
Maize$Pheno,
Maize$Geno,
traits = "Y",
folds = folds,
is_multitrait = FALSE,
iterations_number = 10,
burn_in = 5,
thinning = 5,
seed = NULL,
verbose = TRUE
)
print(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.