Description Usage Arguments Value Examples

Creation of an overall "Table 1" of baseline patient characteristics in the original unweighted and the inverse probability weighted samples, using only summary-level information shared by data-contributing sites. This is a function for the analysis center.

1 | ```
createTable1(XsummaryList, digits = 2)
``` |

`XsummaryList` |
A list of summary-level information tables shared by data-contributing sites. Each site provides one table, which can be obtained by using the function |

`digits` |
An integer indicating the number of decimal places for the generated "Table 1". The default is 2. |

A data frame of the "Table 1". Each row represents a covariate. The seven columns represent the covariate type ("yes" if it is binary, "no" if it is continuous or count), the exposed group in the original sample, the unexposed group in the original sample, the exposed group in the weighted sample with conventional weights, the unexposed group in the weighted sample with conventional weights, the exposed group in the weighted sample with stabilized weights, and the unexposed group in the weighted sample with stabilized weights. For cells of binary covariates, values are count(percentage). For cells of continuous or count covariates, values are mean(standard deviation).

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ```
#load example datasets in the package
#site1-3 contain individual-level data of data-contributing sites 1-3
data(site1)
data(site2)
data(site3)
#sites 1-3 compute summary-level information needed for creating the "Table 1"
#with logistic propensity score model A~X1+X2+X3+X4+X5
#no weight truncation
Xsummary1=computeInfoForTable1(data=site1,indA="A",indX=c("X1","X2","X3","X4","X5"),truncP=1)
Xsummary2=computeInfoForTable1(data=site2,indA="A",indX=c("X1","X2","X3","X4","X5"),truncP=1)
Xsummary3=computeInfoForTable1(data=site3,indA="A",indX=c("X1","X2","X3","X4","X5"),truncP=1)
#analysis center creates the "Table 1"
#using summary-level information Xsummary1-3 shared by data-contributing sites
#display the table with 3 decimal places
createTable1(list(Xsummary1,Xsummary2,Xsummary3),digits=3)
#analysis center can also generate site-specific "Table 1"
#for example, for site 1
createTable1(list(Xsummary1),digits=3)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.