An constructor function for the S4 CompositeReady class
CompositeReady(
data,
covmat,
sigma,
standardize,
use.prethreshold,
distances,
distanceDensity,
winsorizedValues,
better,
rawdata,
groups,
thresholds,
higherisbetter,
k,
rawtrans
)
A data frame of the ready to use data
A covariance matrix of the data
A vector of the standard deviations of each variable
A logical whether the data were standardized or not
A logical value whether to calculate covariance matrix
based on the data after winsorizing, but before applying the threshold.
Defaults to FALSE
, so that covariances are calculated after thresholds
(if any) are applied.
A data frame of the distance scores
A ggplot2 graph of the densities of each distance score. If not passed, generated automatically from the data.
A data frame indicating the values used (if any) for winsorization. Should have one row for each variable in the dataset.
A logical vector the same length as the number of columns in the distance scores indicating whether higher or lower values are better for each.
A data frame with at least one row and column
an optional character vector. If omitted defaults to a character vector of all “one”s.
an optional named list where names match the names in groups. If using defaults for groups, should name it “a”.
an optional logical vector
an optional integer, the number of columns in the raw data
A list of functions to transform the raw data (and thresholds).
An S4 object of class “CompositeReady”