variability: Variability analysis

Description Usage Arguments Value Author(s) Examples

View source: R/variability.R

Description

Variability analysis

Usage

1
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

1
2
3
4
5
6
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)

BasketballAnalyzeR documentation built on July 2, 2020, 2:14 a.m.