makePPTList_mnps: Make PPT List with an object of class mnps

View source: R/makePPTList_mnps.R

makePPTList_mnpsR Documentation

Make PPT List with an object of class mnps

Description

Make PPT List with an object of class mnps

Usage

makePPTList_mnps(
  x,
  dep = "",
  time = "",
  status = "",
  adjustCovar = FALSE,
  covars = "",
  method = "GBM"
)

Arguments

x

Character

dep

Character Name of dependent variable

time

Name of time variable

status

Name of status variable

adjustCovar

logical

covars

string

method

Method of PS estimate. One of c("GBM","lm","glm","chisq")

Examples

## Not run: 
library(twang)
data(AOD)
x <- "mnps(treat~illact+crimjust+subprob+subdep+white,data=AOD,verbose=FALSE,n.trees=3000)"
result=makePPTList_mnps(x,dep="suf12")
data(cancer,package="survival")
x="mnps(rx~nodes+differ+adhere+obstruct+surg+extent+node4,data=colon,n.trees=3000)"
result=makePPTList_mnps(x,time="time",status="status")

## End(Not run)

cardiomoon/webrPSM documentation built on Feb. 2, 2024, 3:55 a.m.