compdata: Data structured for matchpropexc

Description Usage Arguments Value Author(s) Examples

View source: R/matchf.R

Description

Data structured for matchpropexc

Usage

1
compdata(formula, data, clust, idControl, ...)

Arguments

formula

formula with 'Surv' outcome (see coxph); avoid using strata() or factor()

data

data frame

clust

vector exposed indicator; it identifies the "cluster" (one exposed in each clust i)

idControl

vector control indicator (idControl==1 indicates exposed individual in clust i)

...

Additional arguments to lower level funtions

Value

A setup dataset, ready for matchpropexc

Author(s)

Cristina Boschini

Examples

1
2
3
dhaz<-sim.data.MatchH(nca=5000, ncont=5)
setdhaz<-compdata(Surv(time, status)~z+cc, clust=id, idControl=j, data=dhaz)
head(setdhaz, 10)

cribosch/matchsurv documentation built on Aug. 15, 2019, 11:55 a.m.