computeBasis: Computes function evaluations

Description Usage Arguments Details Value Author(s) See Also

Description

This function computes function evaluations and stores them in a given environment.

Usage

1
2
## S4 method for signature 'PointProcessModel,ANY'
computeBasis(model, form, ...)

Arguments

model

an object of class "PointProcessModel".

form

a S3-class terms object. Usually a term obtained from a formula, which gives the function to be evaluated. Modified into the formula ~ term - 1 before computation.

...

other arguments.

Details

The function is called when building the model matrix for an object of class "PointProcessModel".

The function checks if the environment in model holding the basis evaluations is locked, and if it is, if the basis evaluations for the form are present. If so, the function returns TRUE. It is an error if the term is not present (should not happen, an error message is given). Otherwise the basis evaluations are computed and stored in the appropriate environment in the model.

Value

A "logical", which is TRUE if the basis function evaluations are computed as they need to be.

This function is called for its side effect of computing and storing the basis evaluations in the environment. If the environment is locked the evaluations are not recomputed.

Author(s)

Niels Richard Hansen, Niels.R.Hansen@math.ku.dk

See Also

PointProcessModel


ppstat documentation built on May 2, 2019, 5:26 p.m.