Learn R Programming

pandemonium (version 0.2.4)

pullCoords: Chi-Squared Loss Function Coordinates

Description

Computes coordinate values by comparing observed values to the reference, using the covariance matrix as when computing the chi-squared loss.

Usage

pullCoords(df, covInv, exp, ...)

Value

matrix with coordinate representation of all points

Arguments

df

data frame

covInv

inverse covariance matrix

exp

reference values

...

other expected values of getCoords

Examples

Run this code
head(pullCoords(Bikes$space2,solve(cov(Bikes$space2)),
            data.frame(value = colMeans(Bikes$space2))))


Run the code above in your browser using DataLab