Re: [R] How to plot countours with fixted densities?

2008-10-04 Thread biyeshejiqx
level, it has to be done in >the plot part, as in > >d <- kde2d(z1,z2) >contour(d, levels=10^(-(2:9)/2), add=T) > > >Eik Vettorazzi schrieb: >> You may use kde2d from MASS, with estimates a 2d density >> >> d <- kde2d(z1,z2,h=10^(-(2:9)/2)) >> p

[R] How to plot countours with fixted densities?

2008-10-04 Thread biyeshejiqx
Hello,everybody, I used the following codes to generate bivariate normal dependence structure with unit Frechet margins. Sigma <- matrix(c(1,.5*sqrt(1),.5*sqrt(1),1),2,2) # generate y <- mvrnorm(Nsam, c(0,0), Sigma) # random v <- cbind(pnorm(y[,1],mean = 0, sd = 1), pnorm(y[,2],mean

[R] How to plot countours with fixted densities?

2008-10-04 Thread biyeshejiqx
Hello, I used the following codes to generate bivariate normal dependence structure with unit Frechet margins. Sigma <- matrix(c(1,.5*sqrt(1),.5*sqrt(1),1),2,2) # generate y <- mvrnorm(Nsam, c(0,0), Sigma) # random v <- cbind(pnorm(y[,1],mean = 0, sd = 1), pnorm(y[,2],mean = 0, sd =