View source: R/apportion_scores_comp.R
apportion_scores_comp | R Documentation |
Apportions outlier scores to composites.
apportion_scores_comp(obj)
obj |
The output of |
A list with the following components:
|
The apportioned scores for outliers for timepoints in |
|
The apportioned scores for outliers for timepoints in |
## Not run: set.seed(1) n <- 600 x <- sample(1:100, n, replace=TRUE) x[25] <- 200 x[320] <- 300 x2 <- sample(1:100, n, replace=TRUE) x3 <- sample(1:100, n, replace=TRUE) x4 <- sample(1:100, n, replace=TRUE) X <- cbind.data.frame(x, x2, x3, x4) X <- X/rowSums(X) out <- comp_tsout_ens(X, compr=2, fast=FALSE) apportioned <- apportion_scores_comp(out) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.