sci1freq {scitb} | R Documentation |
sci1freq
Description
You can use it to draw a baseline table of data.Creates 'Table 1', i.e., description of baseline patient characteristics, which is essential in every medical research. Supports both continuous and categorical variables, as well as p-values and standardized mean differences.
Arguments
mvars |
The full range of variables you don't want to compare. |
x |
Enter the variables to be layered. If you fill in consecutive variables, by default they will be split into 3 layers. |
data |
Enter your data. |
dec |
The precision of the data, which defaults to 2 decimal places. |
nonnormal |
When the data belongs to a non-normal distribution, this parameter is needed to indicate which is variable is non-normally distributed. |
statistic |
Statistical effect values. Usually, it is the default F, and selecting T will return a statistical effect value. |
fisher |
Fisher's exact test. The default is FALSE. |
correct |
Chi square test for continuity correction.The default is FALSE. |
Overall |
Generate summary data.The default is FALSE. |
smd |
The default is FALSE. If it is true, return the SMD value. |
Details
Table 1 represents the relationship between the baseline values of the data. This function can be easily done.
Value
A data frame.