quantile.PA: Generate new quantiles based on given percentiles for a PA...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/quantile.PA.R

Description

Calculates arbitrary quantiles from the simulatedEigenValues in a "PA" object.

Usage

1
2
## S3 method for class 'PA'
quantile(x, percentiles = .99, ...)

Arguments

x

An object of class "PA".

percentiles

The new percentiles to replace the ones found in the "PA" object.

...

Not used.

Value

An object of class "PA" with the percentiles data.frame replaced by those from the percentiles argument.

Author(s)

Carlos A. Arias carias@icfes.gov.co and Victor H. Cervantes vcervantes@icfes.gov.co

See Also

PA, print.PA, Check.PA, CountEigen.PA, coef.PA, plot.PA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# # Using the polychoric C++ function
data(Science)
Science[, ] <- lapply(Science, as.ordered)
orderedPA   <- PA(Science, percentiles = c(0.90, 0.99), nReplicates = 200,
                  type = "ordered", algorithm = "polychoric")

print(orderedPA)  # Shows the eigenvalues as a matrix
head(orderedPA$simulatedEigenValues)  # Shows the first six iterations

# # Get different quantiles from a PA object
quantile(orderedPA, percentiles = c(0.1, 0.2, 0.5))

pcaPA documentation built on May 29, 2017, 6:53 p.m.