pmse {singR}R Documentation

Permutation invariant mean squared error

Description

Permutation invariant mean squared error

Usage

pmse(M1 = NULL, M2 = NULL, S1 = NULL, S2 = NULL, standardize = FALSE)

Arguments

M1

Subject score 1 matrix r x n.

M2

Subject score 2 matrix r x n.

S1

Loading 1 with matrix p x r.

S2

Loading 2 with matrix p x r.

standardize

whether to standardize

Value

permutation invariant mean squared error

Examples


#get simulation data
data(exampledata)

# use JB stat to compute with singR
output_JB=singR(dX=exampledata$dX,dY=exampledata$dY,
df=0,rho_extent="small",distribution="JB",individual=TRUE)

# use pmse to measure difference from the truth
pmse(M1 = t(output_JB$est.Mj),M2 = t(exampledata$mj),standardize = TRUE)



[Package singR version 0.1.2 Index]