Or treatment groups, not outcomes, and we want to compare those groups Usually, the columns would represent exposure Really the standard application for these kinds of tables (at least not Respect to variables like sex, while in the original version it isĮasier to compare sexes with respect to outcomes. Version, it is easier to compare the different types of outcomes with Should add to 100% within a column, and in the original blog post theyĪdd to 100% along a row (except for the Total column, which adds to 100% Variables I include the number of individuals in each column under theĬolumn heading the percentages are different, because I think they Original blog post got it wrong) I added units to the continuous This is now looking pretty similar to the original blog post, butĪdmittedly there are still some differences: the sexes are inverted (the Involves using the slightly more complicated “default”įirst, we set up our labels differently, using a list: Result, we need to customize the output further, and in this case that With two significant digits rather than three. Like the table1 default output most values are displayed Grouped together under a common heading the continuous variables AgeĪnd Thickness show only Means (SD) (with a ±), and not Median Post: the two “Death” strata (Melanoma and Non-melanoma) should be This looks better, but still not quite the same as the original blog Overall column to be labeled “Total” and be positioned on the left, and We want, and specify units for the continuous variables ( sex and ulcer), label each variable the way To improve things, we can createįactors with descriptive labels for the categorical variables ‘+’ symbols, the “stratification” variable (which creates the columns)Īppears to the right of a “conditioning” symbol ‘|’, and theĭata argument specifies a ame thatīut because we don’t have nice labels for the variables andĬategories, it doesn’t look great. Interface, where the variables to include in the table are separated by Note that the table1 package uses a familiar formula
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |