This function plots estimated terms that appear in the mean and variance models.
# S3 method for mvrm
plot(x,model,term,response,intercept=TRUE,grid=30,centre=mean,
quantiles=c(0.1, 0.9),static=TRUE,centreEffects=FALSE,plotOptions=list(),
nrow,ask=FALSE, ...)
an object of class `mvrm' as generated by function mvrm
.
one of "mean", "stdev", or "both", specifying which model to be visualized.
the term in the selected model to be plotted.
integer number denoting the response variable to be plotted (in case there is more than one).
specifies if an intercept should be included in the calculations.
the length of the grid on which the term will be evaluated.
a description of how the centre of the posterior should be measured. Usually mean
or median
.
the quantiles to be used when plotting credible regions. Plots without credible intervals may be obtained by setting this argument to NULL.
relevant for 3D plots only. If static=TRUE
then plot.mvrm
calls
function ribbon3D
from package plot3D
to create the plot.
If static=FALSE
then plot.mvrm
calls
function scatterplot3js
from package threejs
to create the plot.
if TRUE then the effects in the mean functions are centred around zero over the range of the predictor while the effects in the variance function are scaled around one.
for plots of univariate smooth terms or for plots of bivariate smooth terms where one of the
two covariates is discrete, this is a list of plot elements to give to ggplot
.
For smooths of bivariate continuous covariates, this is a list of plot elements to give to
ribbon3D
(if static=FALSE
) or to scatterplot3js
(if static=TRUE
).
the number of rows in the figure with the plots.
if set to TRUE, plots will be displayed one at a time.
other arguments.
Predictions along with credible/pediction intervals
Use this function to obtain predictions.
# NOT RUN {
#see \code{mvrm} example
# }
Run the code above in your browser using DataLab