Learn R Programming

RMAWGEN (version 1.3.7)

GPCA: This function makes a Gaussianization procedure based on PCA iteration ( see GPCA_iteration)

Description

This function makes a Gaussianization procedure based on PCA iteration ( see GPCA_iteration)

Usage

GPCA(x_prev, n = 30, extremes = TRUE)

Arguments

x_prev

previous set of the random variable x. If it is a varest object, the residuals are taken into account.

n

number of reiterations

Value

A GPCA-class S3 object returned by GPCA_iteration at each iteration and the final results of the G-PCA procedure (matrix final_results)

See Also

GPCA,GPCA_iteration,inv_GPCA_iteration,inv_GPCA,GPCA-class for 'GPCA' S3 class

Examples

Run this code
# NOT RUN {
library(RMAWGEN)
set.seed(1222)
nIterations <- 30
N <- 20
x <- rexp(N)
y <- x+rnorm(N)
df <- data.frame(x=x,y=y)

GPCA <- GPCA(df,n=nIterations,extremes=TRUE)

x <- rnorm(N)
y <- x+rnorm(N)
dfn <- data.frame(x=x,y=y)

GPCAn <- GPCA(dfn,n=nIterations,extremes=TRUE)


# }

Run the code above in your browser using DataLab