---------- Forwarded message ----------
From: marta Garcia <marta000garcia@gmail.com>
Date: 2013/8/3
Subject: (nonparametric) Copula density estimation
To: r-help@r-project.org


Hello community, sorry for the English, I speak Spanish ...
I try to run this code


install.packages("MASS")

library(MASS)
install.packages ("evd")
library(evd)


X=lossalae
U=cbind(rank(X[,1])/(nrow(X)+1),rank(X[,2])/(nrow(X)+1))
The standard tool to plot nonparametric estimators of densities is to use
multivariate kernels. We can look at the density using

mat1=kde2d(U[,1],U[,2],n=35)
install.packages("mgcv")
library(mgcv)


persp(mat1$x,mat1$y,mat1$z,col="green"
, shade=TRUE,theta=s*5
, xlab="",ylab="",zlab="",zlim=c(0,7))


I get this error

Error in s * 5 : non-numeric argument to binary operator


Can anyone help?


I have R 3.0.1
windows 8

Thanks in advance

	[[alternative HTML version deleted]]

