# NOT RUN {
data(data)
# Quantitative statistics with no factor
report.quanti(data=data,y="y_numeric",y.label="Awesome results")
#' # Quantitative statistics with no factor with geometric mean (option geomean=TRUE)
report.quanti(data=data,y="y_numeric",y.label="Awesome results",geomean=TRUE)
# Quantitative statistics with one factor
report.quanti(data=data,y="y_numeric",x1="GROUP")
# One factor with total column
report.quanti(data=data,y="y_numeric",x1="GROUP",total=TRUE)
# Quantitative statistics with two factors
report.quanti(data=data,y="y_numeric",x1="GROUP",x2="TIMEPOINT")
# Quantitative statistics with two factors and a total column
report.quanti(data=data,y="y_numeric",x1="GROUP",x2="TIMEPOINT",total=TRUE)
# Quantitative statistics with spacing rows (option at.row)
report.quanti(data=data,y="y_numeric",x1="GROUP",
x2="TIMEPOINT",total=TRUE,at.row="TIMEPOINT")
# Add number of subjects in headers (option subjid)
report.quanti(data=data,y="y_numeric",x1="GROUP",
x2="TIMEPOINT",total=TRUE,at.row="TIMEPOINT",subjid="SUBJID")
# }
Run the code above in your browser using DataLab