fit_trunc_normal: Fit Truncated Normal Model on Covariate

View source: R/pred.R

fit_trunc_normalR Documentation

Fit Truncated Normal Model on Covariate

Description

This internal function models a covariate using a normal distribution truncated on one side at a user-specified cutoff.

Usage

fit_trunc_normal(covparams, obs_data, j, model_fits)

Arguments

covparams

List of vectors, where each vector contains information for one parameter used in the modeling of the time-varying covariates (e.g., model statement, family, link function, etc.).

obs_data

Data on which the model is fit.

j

Integer specifying the index of the covariate.

model_fits

Logical scalar indicating whether to return the fitted models. The default is FALSE.

Value

Fitted model for the covariate at index j.


CausalInference/gfoRmula documentation built on Oct. 1, 2024, 8:36 p.m.