plotlssVarReg {VarReg}R Documentation

Plots graphics for a location, scale and shape regression model

Description

plotlssVarReg is used to produce graphics for models fit in the VarReg package with the lssVarReg function. As the skew-normal distribution is used to fit this type of model, the data needs to be transformed from the SN parameters (location, scale and shape) to the typical mean, variance and skew parameters.

Usage

plotlssVarReg(x, knot.lines = FALSE, xlab = "x", ylab = "y")

Arguments

x

Object of class lssVarReg (output from lssVarReg).

knot.lines

Logical to show the knot lines on the graphics (if model is type "semi"). Default is TRUE

xlab

Label to be placed on the x axis of graphics (covariate)

ylab

Label to be placed on the y axis of graphics (outcome)

Value

A graphic is returned, as well as a dataframe. The graphic returned is a 2 by 2 plot of:

The dataframe returned contains the following columns:

See Also

lssVarReg

Examples

data(mcycle)
## not run. LSS model followed by the basic plot command
##lssmodel<-lssVarReg(mcycle$accel, mcycle$times,  locationmodel="linear", scale2model="linear",
##shapemodel="constant", maxit=10000)
##lssplot_out<-plotlssVarReg(lssmodel, xlab="Time in seconds", ylab="Acceleration")

[Package VarReg version 2.0 Index]