variability {BasketballAnalyzeR} | R 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 |
size.var |
a vector of variable names or of column numbers defining variables for weights (active only if |
VC |
logical; if |
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)
[Package BasketballAnalyzeR version 0.5.0 Index]