sci1mean {scitb}R Documentation

sci1mean

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.

type

The type of encoding generally does not require input.

statistic

Statistical effect values. Usually, it is the default F, and selecting T will return a statistical effect value.

atotest

Check if the data is normally distributed. The default is T.

NormalTest

A method for detecting whether data is normally distributed.The default values are Kolmogorov Smirnov test and Kolmogorov Smirnov test.Other options are: "ad", "cvm", "pearson".

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.


[Package scitb version 0.1.7 Index]