repeated: Repeated Measurements

Description Usage Arguments Value Examples

Description

Provides a recommended statistical method given the measurement level of your data. Appropriate for repeated measurements.

Usage

1
repeated(data, variables)

Arguments

data

the data as a data frame, with variables encoded as numeric (for interval/ratio variables), ordered (for ordinal variables), or factor (for nominal variables)

variables

a vector of strings naming the related variables from data

Value

A results object containing:

results$advice the method recommendation
results$plot a scatter plot of the data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
exampleData <- data.frame(x1 = rnorm(20),
                          x2 = rnorm(20),
                          x3 = rnorm(20),
                          x4 = as.factor(c(rep(1, 10), rep(2, 10))),
                          x5 = as.factor(c(rep(1, 5), rep(2, 5), rep(3, 10))),
                          x6 = as.ordered(c(rep(1, 5), rep(2, 5), rep(3, 10))),
                          x7 = as.ordered(c(rep(1, 10), rep(2, 5), rep(3, 5))))

repeated(exampleData, variables = c('x1', 'x2', 'x3'))
repeated(exampleData, variables = c('x4', 'x5'))
repeated(exampleData, variables = c('x6', 'x7'))

rivkamdevries/Statkat documentation built on May 24, 2019, 2:02 a.m.