get_terms: Extract the partial effects of non-linear model terms

Description Usage Arguments Value See Also Examples

Description

Extract the partial effects of non-linear model terms

Usage

1

Arguments

data

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

fit

A fitted object of class gam.

terms

A character vector (can be length one). Specifies the terms for which partial effects will be returned

...

Currently ignored.

Value

A data frame with 5 columns.

See Also

coxph

Examples

1
2
3
library(survival)
fit <- coxph(Surv(time, status) ~ pspline(karno, df=4), data=veteran)
term.karno <- get_terms(veteran, fit, terms="karno")

adibender/pamm documentation built on May 14, 2019, 5:22 p.m.