Learn R Programming

pandemonium (version 0.2.4)

chi2score: Chi-squared scores function

Description

Can be used as getScores input in pandemonium. Returns chi-squared values as the score and sigma bins as the bins.

Usage

chi2score(space1, covinv, exp, ...)

Value

named list containing scores for use in pandemonium

Arguments

space1

dataframe with variables in space1

covinv

inverse covariance matrix from space1

exp

reference point from space 1

...

other expected values of getScore

Examples

Run this code
chi2score(Bikes$space1,solve(cov(Bikes$space1)),
            data.frame(value = colMeans(Bikes$space1)))


Run the code above in your browser using DataLab