summary.statistics: Summary statistics - summary.statistics

View source: R/summary.statistics.R

summary.statisticsR Documentation

Summary statistics - summary.statistics

Description

it return descriptives for two phases: baseline and induction. You can also input the type to make a summary of the data.

Usage

## S3 method for class 'statistics'
summary(data, phase = NULL, type = NULL)

Arguments

data

data frame

phase

analysis phases. Mandatory parameter, it could be: 'baseline' or 'transfer'.

type

Output type. It could be: mean_sd, mean, mean_se

Value

a tibble with the statistics

Examples

df<-data.frame('your data')
summary.statistics(df,phase='baseline')
summary.statistics(type = 'mean_sd)
long.data(df, 'induction', '1, 'mean_sd')


ezrp/R documentation built on June 22, 2022, 7:24 p.m.