Learn R Programming

morpheus (version 1.0-4)

computeMoments: computeMoments

Description

Compute cross-moments of order 1,2,3 from X,Y

Usage

computeMoments(X, Y)

Value

A list L where L[[i]] is the i-th cross-moment

Arguments

X

Matrix of input data (size nxd)

Y

Vector of binary outputs (size n)

Examples

Run this code
X <- matrix(rnorm(100), ncol=2)
Y <- rbinom(100, 1, .5)
M <- computeMoments(X, Y)

Run the code above in your browser using DataLab