estimate_semipmetric_erf: Estimate semi-exposure-response function (semi-ERF).

View source: R/estimate_semipmetric_erf.R

estimate_semipmetric_erfR Documentation

Estimate semi-exposure-response function (semi-ERF).

Description

Estimates the smoothed exposure-response function using a generalized additive model with splines.

Usage

estimate_semipmetric_erf(formula, family, data, ...)

Arguments

formula

a vector of outcome variable in matched set.

family

a description of the error distribution (see ?gam).

data

dataset that formula is build upon Note that there should be a counter_weight column in this data.).

...

Additional parameters for further fine tuning the gam model.

Details

This approach uses Generalized Additive Model (gam) using mgcv package.

Value

returns an object of class gam


CausalGPS documentation built on June 22, 2024, 9:31 a.m.