r - 如何从 R 中的非平稳广义帕累托 (GP) 模型中提取参数?

标签 r parameters distribution

我现在正在使用 extRemes包来构建非平稳 GP 模型,我发现很难提取参数。

非平稳尺度参数

library(extRemes)
data(Fort)
fit1 <- fevd(Prec, Fort, threshold=0.395,
        scale.fun=~sin(2 * pi * (year - 1900)/365.25) + cos(2 * pi * (year - 1900)/365.25),
        type="GP", use.phi=TRUE, verbose=TRUE)

enter image description here

根据fevd帮助页面,log(scale(y)) = phi(y) = phi0 + phi1 * g1(y) + phi2 * g2(y) + ...
现在,我们有 phi0 , phi1 , 和 phi2从结果来看,但什么是 g1(y)g2(y)在上面的函数中?

还有,我们如何理解scale.funfit1 ?什么scale.fun=~sin(2 * pi * (year - 1900)/365.25) + cos(2 * pi * (year - 1900)/365.25)代表?例如,如果我们使用 scale.fun=~Fort$year ,我们假设 yearscale 有线性影响范围。

非平稳阈值
fit2 <- fevd(Prec, Fort, threshold=0.475, threshold.fun=~I(-0.15 * cos(2 * pi * month / 12)),
        type="GP", verbose=TRUE)

enter image description here

来自 fit2 ,我们如何计算变化 threshold值基于 threshold.fun = ~I(-0.15 * cos(2 * pi * month/12)) ?谢谢你的帮助。

最佳答案

g1(y) 等是您通过 scale.fun 参数提供给 fevd 的函数。因此,phi0 就像一个截距项,ph1 是 sin(2 * pi * (year - 1900)/365.25) 等的系数。因为您使用了 use.phi = TRUE,所以您的 scale 参数模型估计为: log( scale ) = -0.84 - 0.23 * sin(2 * pi * (year - 1900)/365.25) - 0.25 * cos(2 * pi * (year - 1900)/365.25),你估计的形状参数大约是0.21(如此重尾)。

关于r - 如何从 R 中的非平稳广义帕累托 (GP) 模型中提取参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52123093/

相关文章:

使用 purrr 重复添加数据框列

r - ggplot2:在每个堆积图中添加两个观察值

java - Http Servlet 请求在读取一次后会丢失 POST 正文中的参数

c++ - uniform_int_distribution <> 和 <int> 有什么区别?

xcode - 有效的 Distribution 配置文件从 Xcode Organizer 中消失了吗?

distribution - 使用临时配置文件将应用提交到应用商店

r - 将单位标签添加到 ggplot2 中的颜色渐变图例

r - R : nonlinear key range 中的filled.contour()

javascript - 使用js ajax的参数调用c#方法

c# - 具有多个值的 System.Data.SQLite 参数化查询?