nobs.ppmodel: Number of observations used to fit a ppforest2 model.

View source: R/ppmodel.R

nobs.ppmodelR Documentation

Number of observations used to fit a ppforest2 model.

Description

Implements the standard stats::nobs() contract so downstream tools (step(), broom's glance(), information criteria) can ask for the training-sample size.

Usage

## S3 method for class 'ppmodel'
nobs(object, ...)

Arguments

object

A pptr or pprf model.

...

Unused.

Value

Integer scalar. Returns NA_integer_ for models loaded from JSON without their original training data.


ppforest2 documentation built on July 21, 2026, 9:07 a.m.