rcopula(SpatialExtremes)
rcopula()所属R语言包:SpatialExtremes
Simulation from copula based models with unit Frechet margins
基于Copula模型与模拟单位的Frechet空间
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function generates realisations from the Gaussian and Student copula with unit Frechet margins.
此功能实现从高斯和学生的copula产生单位的Frechet空间。
用法----------Usage----------
rcopula(n, coord, copula = "gaussian", cov.mod = "whitmat", grid =
FALSE, control = list(), nugget = 0, range = 1, smooth = 1, DoF = 1)
参数----------Arguments----------
参数:n
Integer. The number of observations.
整数。的若干意见。
参数:coord
A vector or matrix that gives the coordinates of each location. Each row corresponds to one location - if any
的向量或基质,给出了每一个位置的坐标。每一行对应于一个位置 - 如果没有
参数:copula
A character string that specifies the copula to be used, i.e., "gaussian" or "student".
一个字符串,指定要使用的Copula,即“高斯”或“学生”。
参数:cov.mod
A character string that gives the correlation function family to be used. This must be one of "whitmat", "cauchy", "powexp" and "bessel" for the Whittle-Matern, the cauchy, the powered exponential and the bessel correlation functions.
一个字符串,让家庭使用的相关功能。这必须是一个“whitmat”,“柯西”中,“powexp”和“贝塞尔”的惠特尔Matern,柯西,动力指数和的贝塞尔相关功能。
参数:grid
Logical. Does the coordinates represent grid points?
逻辑。的坐标代表网格点吗?
参数:control
A named list that control the simulation of the gaussian process — see rgp.
一个命名列表中的高斯过程控制仿真 - rgp。
参数:nugget, range, smooth, DoF
Numerics. The parameters of the copula.
数值计算。 Copula函数的参数。
值----------Value----------
A matrix containing observations from the required max-stable model. Each column represents one stations. If grid = TRUE, the function returns an array of dimension nrow(coord) x nrow(coord) x n.
矩阵的观测所需的最高稳定的模型。每一列代表一个站。如果grid = TRUE,该函数返回一个数组的维NROW(经纬度)所述NROW(经纬度)X N。
(作者)----------Author(s)----------
Mathieu Ribatet
参考文献----------References----------
International Statistical Review 73:1, 111–129.
Modelling of Spatial Extremes Submitted to Statistical Science.
参见----------See Also----------
fitcopula, rmaxstab, rmaxlin
fitcopula,rmaxstab,rmaxlin
实例----------Examples----------
n.site <- 25
n.obs <- 50
coord <- matrix(runif(2 * n.site, 0, 10), ncol = 2)
data1 <- rcopula(n.obs, coord, "student", "whitmat", range = 3, DoF = 3)
x <- y <- seq(0, 10, length = 100)
data2 <- rcopula(1, cbind(x, y), "gaussian", "whitmat", range = 3, grid
= TRUE)
image(x, y, log(data2), col = rainbow(64))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|