Provides Some Useful Functions for Making Statistical Tables

You can use the functions provided by the package to make various statistical tables, such as baseline data tables. Creates 'Table 1', i.e., a description of the 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. This method was described by Mary L McHugh (2013) .


scitb

Provides Some Useful Functions for Making Statistical Tables

Installation

What is' scitb '?

The scitb package is currently under development. It aims to make generating statistical tables simpler for users.

The scitb package follows the GPL-3 protocol. You can freely use and modify it.

But if you use it for commercial purposes, you need the developer's consent and authorization.

install.packages("scitb")

Example

This is a basic example which shows you how to solve a common problem:

library(scitb)
## basic example code
## Import data
bc<-prematurity
## Hierarchical variables converted to factors.
bc$race<-as.factor(bc$race)
###Define all variables, categorical and stratified.
allVars <-c("age", "lwt",  "smoke", "ptl", "ht", "ui", "ftv", "bwt")
fvars<-c("smoke","ht","ui")
strata<-"race"
out<-scitb1(vars=allVars,fvars=fvars,strata=strata,data=bc)
###Stratified variables are continuous variables.
allVars <-c("race", "lwt",  "smoke", "ptl", "ht", "ui", "ftv", "bwt")
fvars<-c("smoke","ht","ui","race")
strata<-"age"
out<-scitb1(vars=allVars,fvars=fvars,strata=strata,data=bc)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("scitb")

0.2.2 by Qiang Liu, a year ago


Browse source code at https://github.com/cran/scitb


Authors: Qiang Liu [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports ggplot2, MASS, nortest, reshape2, stringi


See at CRAN