Description Usage Arguments Examples
This function allows you to assess how sensitive your results are to unmeasured variable.
1 | rubinRules2(data, Treatment, matchscore = "ps", covlist)
|
data |
data set to be used. |
Treatment |
A variables defining exposure group. |
matchscore |
Variable containing matching distance.Default is propensity score. |
covlist |
list of variables to be balanced. Note: All variable should be of numeric type. |
1 2 3 4 5 6 7 8 9 | data(toy)
psmodel <- glm(treated ~ covA + covB + covC + covD + covE + covF + Asqr + BC + BD, family=binomial(), data=toy)
toy$ps <- psmodel$fitted
toy$linps <- psmodel$linear.predictors
covlist1=c('covA', 'covB', 'covC', 'covD', 'covE', 'covF.Middle', 'covF.High', 'Asqr','BC', 'BD')
rubinRules(data=toy,Treatment='treated',covlist=covlist1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.