data(roses)
# Multivariate:
X <- as.folder(roses[,c("Sha","Den","Sym","rose")], groups = "rose")
summary(X)
mean.X <- mean(X)
var.X <- var.folder(X)
# Parametrically estimated Gaussian densities:
matdistl2dnorm(X)
if (FALSE) {
# Estimated densities using the Gaussian kernel method ()normal reference rule bandwidth):
matdistl2dnorm(X, method = "kern")
# Estimated densities using the Gaussian kernel method (bandwidth provided):
matdistl2dnorm(X, method = "kern", varwL = var.X)
}
# Univariate :
X1 <- as.folder(roses[,c("Sha","rose")], groups = "rose")
summary(X1)
mean.X1 <- mean(X1)
var.X1 <- var.folder(X1)
# Parametrically estimated Gaussian densities:
matdistl2dnorm(X1)
# Estimated densities using the Gaussian kernel method (normal reference rule bandwidth):
matdistl2dnorm(X1, method = "kern")
# Estimated densities using the Gaussian kernel method (normal reference rule bandwidth):
matdistl2dnorm(X1, method = "kern", varwL = var.X1)
Run the code above in your browser using DataLab