Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: VaR
See also: VaRcopula VaRfitcopula

Quantlet: VaRsimcopula
Description: generates 2-dimensional random data from distribution with given copula

Usage: res = VaRsimcopula(samples,sigma1,sigma2,theta,mycopula)
Input:
samples scalar, number of observations
sigma1 standard deviation of the first normal distribution
sigma2 standard deviation of the second normal distribution
theta scalar, parameter of the copula
mycopula scalar, integer between 1 and 22, chooses the copula; see VaRcopula for details
Output:
res pseudorandom data

Note:

Example:
library("VaR")
randomize(1)
VaRsimcopula(6,1,1,5,4)

Result:
Contents of res
[1,]  -3.3311  -2.5395
[2,]  0.62711  0.36266
[3,]  -1.9739  -2.2554
[4,]  0.0099812  0.19167
[5,]  -1.7976  -1.0003
[6,]  -1.1899  -1.2875



Author: J. Rank, T. Siegl, Z. Hlavka, 20010725
(C) MD*TECH Method and Data Technologies, 05.02.2006