time_snmm: Estimate Using Structural Nested Mean Models

View source: R/time_snmm.R

time_snmmR Documentation

Estimate Using Structural Nested Mean Models

Description

Estimate using structural nested mean models.

Usage

time_snmm(data, outcome.name, exposure.names, confound.names)

Arguments

data

Dataframe.

outcome.name

Name of outcome variable.

exposure.names

Name of exposure variables. There must be 2 of them.

confound.names

Names of the confound variables.

Details

Estimate using structural nested mean models with he tidyverse way of coding.

Value

Dataframe in a useable format for rsample::bootstraps.

Source

Section 13.2

Examples

# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.

FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.