Learn R Programming

psc (version 1.2.0)

data_match: A function to ensure that data from the cfm and data cohort are compatible

Description

The purpose of this function is to run a series of checks to ensure that the data included in the data cohort is comparable to the counter-factual model

Usage

data_match(cfm.data, dc.data)

Value

a dataset which is checked and compatible with the CFM

Arguments

cfm.data

a model object supplied to pscfit

dc.data

a dataset including covariates to match the CFM