Description Usage Arguments Details Value Author(s) Examples
Forms the crude, stratified tables suitable for using in other functions of this package.
1 | form.table(Y1A1L1, Y1A0L1, Y1A1L0, Y1A0L0, Y0A1L1, Y0A0L1, Y0A1L0, Y0A0L0)
|
Y1A1L1 |
Frequency of subjects who are treated (A=1), exposed to confounder (L=1) and developed the outcome (Y=1). |
Y1A0L1 |
Frequency of subjects who are not treated (A=0), but exposed to confounder (L=1) and developed the outcome (Y=1). |
Y1A1L0 |
Frequency of subjects who are treated (A=1), unexposed to confounder (L=0) and developed the outcome (Y=1). |
Y1A0L0 |
Frequency of subjects who are not treated (A=0), unexposed to confounder (L=0) and developed the outcome (Y=1). |
Y0A1L1 |
Frequency of subjects who are treated (A=1), exposed to confounder (L=1) but did not developed the outcome (Y=0). |
Y0A0L1 |
Frequency of subjects who are not treated (A=0), but exposed to confounder (L=1) and did not developed the outcome (Y=0). |
Y0A1L0 |
Frequency of subjects who are treated (A=1), unexposed to confounder (L=0) and did not developed the outcome (Y=0). |
Y0A0L0 |
Frequency of subjects who are untreated (A=0), unexposed to confounder (L=0) and did not developed the outcome (Y=0). |
Frequency of all possible subject combination is required to insert in this function. This function eventually generates tables suitable for using in all other functions in this package.
data |
List frequencies |
crude.data |
Combines all the frequencies in a 2x2 table of treatment vs. outcome |
stratified.table |
Crude table is stratified by condounder exposure |
condounder.exposed.data |
2x2 table only containing subjects exposed to confounder |
condounder.unexposed.data |
2x2 table only containing subjects unexposed to confounder |
Ehsan Karim ehsan@alumni.ubc.ca
1 2 | form.table.object <- form.table(Y1A1L1=150, Y1A0L1=45, Y1A1L0=20, Y1A0L0=5, Y0A1L1=300, Y0A0L1=10, Y0A1L0=40, Y0A0L0=55)
form.table.object
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.