50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

regpro (version 0.1.1)

copula.trans: Makes a copula transformation

Description

Transforms a data matrix so that the marginals follow approximately the standard Gaussian distribution. Alternatively, the marginals can be transformed to follow approximately the uniform distribution on [0,1].

Usage

copula.trans(dendat, marginal=rep("gauss",dim(dendat)[2]), remna=TRUE)

Arguments

dendat
n*d data matrix; the data matrix of n observations and d variables
marginal
d-vector of character strings; the character strings can be "gauss" or "uniform"
remna
TRUE or FALSE; if remna=TRUE, then the rows containing a NA are removed

Value

Examples

Run this code
set.seed(2)
n<-100
d<-2 
dendat<-matrix(runif(n*d),n,d)
x<-copula.trans(dendat)

Run the code above in your browser using DataLab