plotdhglm: Produce Model-Checking Plots for a Double Hierarchical...

Description Usage Arguments Details See Also Examples

Description

Plots residuals for the mean and dispersion models

Usage

1
plotdhglm(OUTPUT, type="mean", random=NULL)

Arguments

OUTPUT

The <dhglmfit> object to be plotted

type

Type of model required (mean, dispersion)

random

Random term whose residuals are to be plotted (mean, phi, v, alpha). Default (NULL) is the residuals from the full model

Details

Four types of plot are available (normal probability plot for residuals, histogram of residuals, residuals versus fitted values and absolute values of residuals versus fitted values).

See Also

<dhglmfit>

Examples

1
2
3
4
5
6
7
8
9
#### Model checking plot for crack-growth data
data(crack_growth)
model_mu<-DHGLMMODELING(Model="mean", Link="log", 
LinPred=y~crack0+(1|specimen),RandDist="inverse-gamma")
model_phi<-DHGLMMODELING(Model="dispersion", Link="log", 
LinPred=phi~cycle+(1|specimen),RandDist="gaussian")
res_crack_dhglm1<-dhglmfit(RespDist="gamma", DataMain=crack_growth, 
MeanModel=model_mu, DispersionModel=model_phi,Maxiter=1)
plotdhglm(res_crack_dhglm1)

dhglm documentation built on May 2, 2019, 2:08 a.m.