predict.ascr: Extract density estimates given a set of covariate values

View source: R/methods.r

predict.ascrR Documentation

Extract density estimates given a set of covariate values

Description

Extracts density estimates from a set of supplied parameter values.

Usage

## S3 method for class 'ascr'
predict(
  object,
  newdata = NULL,
  se.fit = FALSE,
  use.log = FALSE,
  set.zero = NULL,
  ...
)

Arguments

object

A fitted model from fit.ascr.

newdata

An optional data frame in which to look for variables with which to estimate density. If omitted, the function will return the estimated densities at the mask points.

se.fit

A switch indicating if standard errors are required. At present, this will only work if newdata is also provided.

use.log

If TRUE, density estimates and standard errors (if calculated) are provided on the log scale.

set.zero

Indices for effects to ignore. For example, set.zero = c(1, 3) will set the first (probably an intercept) and third terms in the linear predictor to zero when calculating the predictions.

...

Other parameters (for S3 generic compatibility).


b-steve/ascr documentation built on Aug. 15, 2022, 2:38 p.m.