residuals.ppmnet: Residuals for a 'ppmnet' object

Description Usage Arguments Value Examples

View source: R/residuals.R

Description

Computes residual measures for a regularization path of point process models fit via penalized composite likelihood.

Usage

1
2
3
## S3 method for class 'ppmnet'
residuals(object, s = NULL, type = c("raw", "inverse",
  "pearson"), ...)

Arguments

object

A fitted ppmnet object.

s

Value(s) of the penalty tuning parameter at which residuals are to be computed. Default is the entire sequence used to fit the regularization path.

type

Type of residuals to be computed. Options are "raw", "inverse", and "pearson".

...

Ignored

Value

If s is of length 1, a measure (of class msr); otherwise, a vector-valued measure (of class msr), with each component corresponding to a model in the regularization path.

Examples

1
2
3
4
5
Qp <- quadscheme(Xp)
fit <- ppmnet(Qp, exdata)
res <- residuals(fit)
smo <- Smooth(unstack(res)[[40]])
plot(smo)

jeffdaniel/ppmnet documentation built on Aug. 14, 2019, 6:31 a.m.