apc.plot.fit.all: Make all fit plots.

Description Usage Arguments Author(s) See Also Examples

View source: R/apc_plot_fit.R

Description

Plots estimates using apc.plot.fit. Probability transform plot of residuals using apc.plot.fit.pt. Level plot of residuals using apc.plot.fit.residuals. Level plot of fitted values using apc.plot.fit.fitted.values. Level plot of linear predictors using apc.plot.fit.linear.predictors. Level plots of responses and rates (if dose is availble) using apc.plot.data.level.

Usage

1

Arguments

apc.fit.model

List. Output from apc.fit.model. See there for a description of the format.

log

Optional plot argument. Character. "y" if y-scale is logarithmic, otherwise "". Default is "".

rotate

Optional. Logical. If TRUE rotates level plots 90 degrees clockwise (or anti-clockwise if data.format is "CL"). Default is FALSE.

Author(s)

Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 2t Apr 2015

See Also

The example below uses Italian bladder cancer data, see data.Italian.bladder.cancer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#####################
#	EXAMPLE with Italian bladder cancer data

#	get data list, then make all descriptive plots.
# 	Note that warnings are given in relation to the data chosen thinning
#	This can be avoided by working with the individual plots, and in particular
#	with apc.plot.data.within where the thinning happens.

data.list	<- data.Italian.bladder.cancer()
fit			<- apc.fit.model(data.list,"poisson.dose.response","APC")
apc.plot.fit.all(fit)

Example output

WARNING apc.plot.fit: sdv large in for plot 2 - possibly not plotted
WARNING apc.plot.fit: sdv large in for plot 5 - possibly not plotted
dev.new(): using pdf(file="Rplots1.pdf")
dev.new(): using pdf(file="Rplots2.pdf")
dev.new(): using pdf(file="Rplots3.pdf")
dev.new(): using pdf(file="Rplots4.pdf")
dev.new(): using pdf(file="Rplots5.pdf")

apc documentation built on Oct. 23, 2020, 6:17 p.m.