variability: Variability analysis

View source: R/variability.R

variabilityR Documentation

Variability analysis

Description

Variability analysis

Usage

variability(data, data.var, size.var, VC = TRUE, weight = FALSE)

Arguments

data

a data frame.

data.var

a vector of variable names or of column numbers defining (numeric) variables whose variability will be analyzed by variability.

size.var

a vector of variable names or of column numbers defining variables for weights (active only if weight=TRUE).

VC

logical; if TRUE, calculates variation coefficients of variables in data.var.

weight

logical; if TRUE, calculates weighted variation coefficients and standard deviations.

Value

A list with the following elements: ranges, standard deviations, variation coefficients, and two dataframes (data, size).

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

Examples

Pbox.BC <- subset(Pbox, Team=="Oklahoma City Thunder" & MIN >= 500,
                    select=c("P2p","P3p","FTp","P2A","P3A","FTA"))
list_variability <- variability(data=Pbox.BC, data.var=c("P2p","P3p","FTp"),
                                size.var=c("P2A","P3A","FTA"), weight=TRUE)
print(list_variability)
plot(list_variability, leg.brk=c(10,25,50,100,500,1000), max.circle=30)

sndmrc/BasketAnalyzeR documentation built on June 6, 2023, 12:52 a.m.