Skip to content

Commit 47e1566

Browse files
authored
Update varmx.pca.fd.R
1 parent 12d639a commit 47e1566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/varmx.pca.fd.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ varmx.pca.fd <- function(pcafd, nharm=scoresd[2], nx=501)
6262

6363
# compute proportions of variance
6464

65-
rotharmvar <- apply(rotharmscrs^2,2,sum)
65+
rotharmvar <- apply(rotharmscrs^2,2,mean)
6666
varsum <- sum(rotharmvar)
6767
propvar <- sum(pcafd$varprop)*rotharmvar/varsum
6868

0 commit comments

Comments
 (0)