Learn R Programming

refund (version 0.1-40)

coef_make_data_grid: Generate evaluation grid for smooth term

Description

Creates a data frame grid over the range of the covariates for coefficient evaluation.

Usage

coef_make_data_grid(trm, model_data, pffr_info, grid_sizes, is_pcre)

Value

A data frame suitable for PredictMat, with xm/ym/zm attributes.

Arguments

trm

A smooth term object from object$smooth.

model_data

The model data frame (object$model).

pffr_info

List with pffr metadata: yind_name, pcre_terms.

grid_sizes

Named list with n1, n2, n3 grid sizes.

is_pcre

Logical, is this a pcre term?