posum.surface {posum}R Documentation

Evaluate a fitted population surface model.

Description

Produces data for plotting population or death surfaces for fitted posum models, also produces the plot itself.

Usage

 posum.surface(b,fdi=b$options$fdi,m=b$options$con.mesh,
type="p",plot=TRUE,con=FALSE,theta=60)

Arguments

b A fitted gam object for a posum model with at least the extra variables.
fdi multiplier used to control finite difference intervals when obtaining death rates for a type 1 model.
m data is returned on and m by m mesh.
type "p" for population, "d" for total death rate or "m" for per capita mortality.
plot TRUE if a plot should be produced.
con TRUE if plot should be a contour plot, otherwise a perspective plot is shown.
theta angle for viewing perspective plot.

Details

Routine calls posum.pop.matrix and posum.death.matrix to do the real work.

Value

A list with items a, t and z is returned, suitable for plotting with a call such as: contour(as,ts,res$z)

WARNING

Author(s)

Simon N. Wood snw@st-and.ac.uk

References

Gu and Wahba (1991) Minimizing GCV/GML scores with multiple smoothing parameters via the Newton method. SIAM J. Sci. Statist. Comput. 12:383-398

Wood (2000) Modelling and Smoothing Parameter Estimation with Multiple Quadratic Penalties. JRSSB 62(2):413-428

Wood (2003) Thin Plate Regression Splines in press JRSSB

http://www.ruwpa.st-and.ac.uk/simon.html

See Also

posum age.max, cm.splinefun, death.surface, hyman.filter, pcdr, population, population.data, population.surface, posum.atplot, posum.check, posum.con, posum.fit, posum.options, posum.plot, posum.stage, posum.stage.plot, posum.X, rec, sim.age.bound, spl.coef.conv, stage.bound, survival,


[Package Contents]