get_term: Extract partial effects for specified model terms

Description Usage Arguments

View source: R/get-terms.R

Description

Extract partial effects for specified model terms

Usage

1
get_term(data, fit, term, n = 100, ...)

Arguments

data

A data frame containing variables used to fit the model. Only first row will be used.

fit

A fitted object of class gam.

term

The (non-linear) model term of interest.

n

Specify the output sequence either by supplying the length of the sequence with n, or the spacing between value with by. Specifying both is an error.

I recommend that you name these arguments in order to make it clear to the reader.

...

Further arguments passed to seq_range.


adibender/pammtools documentation built on Sept. 9, 2019, 4:59 a.m.