envplot {SLRMss}R Documentation

Quantile-quantile plots with simulated envelope of residuals for SLRMss objects

Description

This function provides an envelope plot of a fitted SLRMss model.

Usage

envplot(
  object,
  J = 100,
  conf = 0.95,
  seed = NULL,
  H0 = FALSE,
  colors = c("red", "green"),
  pch = 16,
  lty = 2,
  xlab,
  ylab,
  main
)

Arguments

object

An object of class SLRMss.

J

The number of Monte Carlo replications. 100 by default.

conf

The confidence level. 0.95 by default.

seed

An optional seed for the simulation.

H0

If TRUE, choose the fitted values under null hypothesis, if FALSE, choose the fitted values under alternative hypothesis (default).

colors

A vector with one or two characters. If it has one character, that represents the color of the plotted points. If it has two characters, the first one represents the color of the points out of the limits and the second one represents the color of the points under the limits. Red and green by default.

pch

A vector with one or two numbers. If it has one numeric, that represents the plot pch. If it has two numbers, the first one represents the pch of the points out of the limits and the second one represents the pch of the points under the limits. 16 by default.

lty

A vector with one or two numbers. If it has one number, that represents the lty of all lines. If it has two numbers, the first one represents the lty of the middle line and the second one represents the lty of the limits line. 2 by default.

xlab

A title for the x axis.

ylab

A title for the y axis.

main

A title for the plot.

Value

Quantile-quantile plot with simulated envelope for a SLRMss object.

Examples

data(orange)
fit <- SLRMss(emulsion ~ arabicgum + xanthangum + orangeoil, family="Student",
xi=3, testingbeta="xanthangum", statistic="LR", data=orange)
envplot(fit)

[Package SLRMss version 1.0.0 Index]