print.spatgev(SpatialExtremes)
print.spatgev()所属R语言包:SpatialExtremes
Printing objects of class ”spatgev”
打印对象类“spatgev”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A method for printing object of class ”spatgev”.
为打印的类“spatgev”对象的方法。
用法----------Usage----------
## S3 method for class 'spatgev'
print(x, digits = max(3, getOption("digits") - 3),
...)
参数----------Arguments----------
参数:x
An object of class ”spatgev”. Most often, x is the output of the fitspatgev function.
对象的类“spatgev”。大多数情况下,x是的输出fitspatgev功能。
参数:digits
The number of digits to be printed.
要打印的数字位数。
参数:...
Other options to be passed to the print function.
到传递给print功能的其他选项。
值----------Value----------
Print several information on screen.
在屏幕上打印多的信息。
(作者)----------Author(s)----------
Mathieu Ribatet
实例----------Examples----------
## 1- Simulate a max-stable random field[#1 - 模拟一个最大稳定的随机场]
n.site <- 35
locations <- matrix(runif(2*n.site, 0, 10), ncol = 2)
colnames(locations) <- c("lon", "lat")
data <- rmaxstab(50, locations, cov.mod = "whitmat", nugget = 0, range = 3,
smooth = 0.5)
## 2- Transformation to non unit Frechet margins[#2 - 非单位的Frechet空间的转换]
param.loc <- -10 + 2 * locations[,2]
param.scale <- 5 + 2 * locations[,1]
param.shape <- rep(0.2, n.site)
for (i in 1:n.site)
data[,i] <- frech2gev(data[,i], param.loc[i], param.scale[i],
param.shape[i])
## 3- Fit a ''spatial GEV'' mdoel to data with the following models for[#3 - 装上一个“空的GEV”mdoel到以下车型]
## the GEV parameters[#GEV参数]
form.loc <- loc ~ lat
form.scale <- scale ~ lon
form.shape <- shape ~ 1
fitspatgev(data, locations, form.loc, form.scale, form.shape)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|