terms
using a supplied asreml object and
predictparallel.asreml.
Tables are produced using predictparallel.asreml,
in conjunction with predictiondiffs.asreml,
with the argument tables specifying which tables are printed.
The argument plots, along with transform.power,
controls which plots are produced. The plots are
produced using predictionplot.asreml, with
line plots produced when variables involving x.num or x.fac
are involved in classify for the predictions and bar charts
otherwise.
In order to get the correct predictions you may need to supply
additional arguments to predict through ... e.g. present.pred.present.asreml(terms, asreml.obj = NULL,
wald.tab = NULL, dDF.na = "residual", dDF.values = NULL,
x.num = NULL, x.fac = NULL, nonx.fac.order = NULL,
x.pred.values = NULL, x.plot.values = NULL,
plots = "predictions", panels = "multiple",
graphics.device = "NULL",
error.intervals = "Confidence", avsed.tolerance = 0.25,
titles = NULL, colour.scheme = "colour", save.plots = FALSE,
transform.power = 1, offset = 0, scale = 1,
pairwise = TRUE, tables = "all", levels.length = NA,
alpha = 0.05, inestimable.rm = TRUE, trace = FALSE, ...)character vector giving the terms for which predictions
are required.asreml object for a fitted model.data frame containing the pseudo-anova table for the
fixed terms produced by a call to wald.asreml. The main
use of it here is in getting denominator degrees of freedom when
NA. Consistent with
when no denDF are available, the default is "residual" avector of values to be used when dDF.na = "supplied".
Its values will be used when denDF in a test for a fixed effect
is NA. This vector must be the same length as the nux.fac, is potentially included in terms in the
fitted model and which corresponds to the x-axis variable. It should
character string giving the name of the factor that corresponds to
x.num, is potentially included in terms in the fitted model and
which corresponds to the x-axis variable. It should have the samcharacter vector giving the order in which factors other
than x.fac are to be plotted in plots with multiple panels
(i.e. where the number of non-x factors is greater than 1).
Thex.num for which predicted values are required.x.num are to be
plotted or x.fac is to be plotted beca"none", "predictions",
"backtransforms" and "both". Plots are not produced
if the value is "none". If data are not transformed for
"single" and "multiple".
When line plots are to be produced, because variables involving
x.num or x.fac are involved in classify for
character specifying a graphics device for plotting.
The default is graphics.device = NULL, which will result
in plots being produced on the current graphics device. Setting it to
"none", "StandardError", "Confidencelist, each component of which is named for an object name and
contains a character string giving a title to use in output
(e.g. tables and graphs) for the object. Here they will be used for
"colour" which produces coloured lines and bars,
a grey background and white gridlines. A value of "black"
logical that determines whether any plots will be saved.
If they are to be saved, a file name will be generated that consists of the
following elements separated by full stops: the response variable name withpredictions and their standard errors and p-values are to be
computed and stored. If tables is equal to "differences"
alldiffs object to print. Possible
values are "none", "predictions", "backtransforms",
"nodifferences", predictiondiffs.asreml.logical indicating whether rows for predictions that
are not estimable are to be removed from the components of the
alldiffs object.predict.asreml via
predictparallel.asreml and to ggplot
via alldiffs object for each term for
which tables are produced. The names of the components of this list are
the terms with full-stops (.) replacing colons (:).predictparallel.asreml, predictiondiffs.asreml,
predictionplot.asreml,
print.alldiffs,
as.Date, Devicespred.present.asreml(choose$sig.terms, current.asrt$asreml.obj, current.asrt$wald.tab,
x.fac = "Date", x.num = "xDay",
x.pred.values=sort(unique(Runoff.longi.dat$xDay)),
x.plot.values=c(0,28,56,84),
x.title = "Days since first observation",
y.title = "Predicted log(Turbidity)",
present = c("Type","Species","Sources"))Run the code above in your browser using DataLab