Skip to content

Commit

Permalink
allow for high-dimensional cases - cancor uses variables in order
Browse files Browse the repository at this point in the history
  • Loading branch information
corybrunson committed Aug 19, 2024
1 parent cb94983 commit 7bff122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/methods-stats-cancor.r
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ recover_aug_rows.cancor_ord <- function(x) {
} else {
tibble(name = name)
}
res$center <- unname(x$xcenter)
res$center <- unname(x$xcenter[seq(nrow(x$xcoef))])
# case scores and structure correlations as supplementary points
res_sup <- NULL
if (! is.null(x$xscores)) {
Expand Down Expand Up @@ -129,7 +129,7 @@ recover_aug_cols.cancor_ord <- function(x) {
} else {
tibble(name = name)
}
res$center <- unname(x$ycenter)
res$center <- unname(x$ycenter[seq(nrow(x$ycoef))])
# case scores and structure correlations as supplementary points
res_sup <- NULL
if (! is.null(x$xscores)) {
Expand Down

0 comments on commit 7bff122

Please sign in to comment.