#####
# (1) simulation
n <- 100
x <- dataRTDE(simu.nb=n, simu.marg="ufrechet", simu.cop="indep")
print(x)
summary(x)
plot(x, xlab="x", ylab="y")
#####
# (2) part of the workers' compensation dataset
x1 <- c(
21.798086, 22.640528, 22.572010, 24.789710, 25.876764, 28.033613,
22.525887, 12.004031, 12.713178, 13.596610, 14.811727, 12.774073,
20.245789, 24.242468, 50.216515, 56.099793, 58.109747, 67.807105,
73.852437, 84.208474, 83.604216, 19.507341, 20.810822, 23.838122,
24.212193, 25.367578, 35.401344, 37.580989, 12.428727, 13.492474,
23.471988, 24.101833, 24.766193, 26.078216)
x2 <- c(
0.538707, 0.439184, 1.059775, 0.560013, 1.004997, 1.097314, 0.609833, 0.270222,
0.229566, 0.596850, 0.196539, 0.134248, 0.489312, 0.418218, 0.769208, 0.649707,
0.503919, 0.675466, 0.545745, 1.562266, 0.931762, 0.291125, 0.499927, 0.151084,
0.141910, 0.300373, 0.119761, 0.141300, 0.377662, 0.169574, 0.243585, 0.061215,
0.055272, 0.312816, 0.160196, 0.623029, 0.280707, 0.174422, 0.176666, 0.153907,
0.605122, 0.664457, 0.348918, 0.370878)
obs <- dataRTDE(cbind(x1, x2))
obs
summary(obs)
plot(obs)
Run the code above in your browser using DataLab