
Create an LSD graph from an ASReml model
lsd_graph.RdGenerates a table of least significant differences (LSDs) for a given model.
Arguments
- model
The model to generate LSDs from.
The value may be:
asremlglmmTMB(not yet implemented)
- classify
charactervector A string specifying which variables to predict and calculate LSDs from.For
asremlmodels, it is passed toclassifyargument ofpredictPlus.asreml.- ...
Arguments to pass to
predictPlus.asreml
Examples
if (FALSE) { # requireNamespace("asreml", quietly = TRUE)
library(asreml)
model <- asreml(
fixed = yield ~ Variety + Nitrogen + Variety:Nitrogen,
random = ~idv(Blocks) + idv(Blocks):idv(Wplots),
residual = ~idv(units),
data = oats
)
lsd_graph(model, classify = "Variety")
}