Learn R Programming

cort (version 0.3.2)

impossible_data: Dataset impossible_data

Description

We simulate from a density inside the piecewise linear copula class, by applying the function: $$h(u) = (u_1, \frac{u_2}{2} + \frac{1}{2}I_{u_1 \notin (\frac{1}{3}, \frac{2}{3})})$$ to a 200x2 uniform sample, and taking ranks.

Usage

impossible_data

Arguments

Format

A matrix with 200 rows and 2 columns

The example section below gives the code to re-generate this data if needed.

Details

This dataset is studied in O. Laverny, V. Maume-Deschamps, E. Masiello and D. Rulli<U+00E8>re (2020).

References

laverny2020cort

Examples

Run this code
# NOT RUN {
set.seed(seed = 12, kind = "Mersenne-Twister", normal.kind = "Inversion")
x = matrix(runif(400),200,2)
x = t(apply(x, 1,function(u){
  if(u[1]< 1/3){
    u[2] = 1/2 + u[2]/2
  } else{ if(u[1]<2/3){
    u[2] = u[2]/2
  } else {
    u[2] = 1/2 + u[2]/2
  }}
  return(u)
}))
impossible_data = apply(x,2,function(x){return(rank(x,ties.method = "max"))})/(201)

# }

Run the code above in your browser using DataLab