View source: R/Match&Permutation_Functions.R
pmse | R Documentation |
Permutation invariant mean squared error
pmse(M1 = NULL, M2 = NULL, S1 = NULL, S2 = NULL, standardize = FALSE)
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 |
permutation invariant mean squared error
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.