plotFit: Diagnostics plots - fitted vs observed, and fitted vs....

Description Usage Arguments Examples

View source: R/semmsFuncs.R

Description

Create two diagnostics plots for the fitted model

Usage

1
plotFit(fittedGLM, ttl = "")

Arguments

fittedGLM

a list with 3 elements: mod = the glm or lm object, aic, and vif, as generated by runLinearModel()

ttl

An optional title for the plots (default is blank)

Examples

1
2
3
4
5
6
7
8
## Not run: 
fn <- system.file("extdata", "AR1SIM.RData", package = "SEMMS", mustWork = TRUE)
dataYXZ <- readInputFile(fn, ycol=1, Zcols=2:100)
fittedSEMMS <- fitSEMMS(dataYXZ, mincor=0.8, nn=15, minchange= 1,
                        distribution="N",verbose=T,rnd=F)
fittedGLM <- runLinearModel(dataYXZ,fittedSEMMS$gam.out$nn, "N")
plotFit(fittedGLM)
## End(Not run)

haimbar/SEMMS documentation built on Dec. 20, 2021, 2:44 p.m.