saddle
位於 boot
包(package)。 說明
此函數計算 W 線性組合在特定點 u
的分布的鞍點近似值,其中 W 是隨機變量向量。 W 的分布可以是多項式(默認)、泊鬆分布或二元分布。如果給出調整的累積量生成函數及其二階導數,其他分布也是可能的。對於具有二元或泊鬆分布的 W,可以計算給定 W 的其他線性組合的值的一個線性組合的分布的條件鞍點近似。
用法
saddle(A = NULL, u = NULL, wdist = "m", type = "simp", d = NULL,
d1 = 1, init = rep(0.1, d), mu = rep(0.5, n), LR = FALSE,
strata = NULL, K.adj = NULL, K2 = NULL)
參數
A |
W 的線性組合的已知係數的向量或矩陣。它是必需的參數,除非提供 |
u |
需要計算 W 線性組合分布的鞍點近似值。除非提供了 |
wdist |
W 的分布。這可以是 |
type |
鞍點近似的類型。可能的類型為 |
d |
這指定了整個統計的維度。僅當 |
d1 |
當 |
init |
如果 |
mu |
當 |
LR |
如果是 |
strata |
分層數據的層。 |
K.adj |
|
K2 |
這是單個參數 |
細節
如果 wdist
是 "o"
或 "m"
,則使用 nlmin
求解鞍點方程,以根據其參數 zeta
最小化 K.adj
。對於泊鬆和二元情況,擬合廣義線性模型,使得參數估計求解鞍點方程。 glm
的響應變量'y' 必須滿足方程t(A)%*%y = u
(t()
是轉置函數)。這樣的向量可以作為線性規劃問題的可行解找到。這是通過調用 simplex
來完成的。 glm
的協變量矩陣由 A
給出。
值
由以下組件組成的列表
spa |
鞍點近似。第一個值是密度近似值,第二個值是分布函數近似值。 |
zeta.hat |
鞍點方程的解。對於條件鞍點,這是分子鞍點方程的解。 |
zeta2.hat |
如果 |
例子
# To evaluate the bootstrap distribution of the mean failure time of
# air-conditioning equipment at 80 hours
saddle(A = aircondit$hours/12, u = 80)
# Alternatively this can be done using a conditional poisson
saddle(A = cbind(aircondit$hours/12,1), u = c(80, 12),
wdist = "p", type = "cond")
# To use the Lugananni-Rice approximation to this
saddle(A = cbind(aircondit$hours/12,1), u = c(80, 12),
wdist = "p", type = "cond",
LR = TRUE)
# Example 9.16 of Davison and Hinkley (1997) calculates saddlepoint
# approximations to the distribution of the ratio statistic for the
# city data. Since the statistic is not in itself a linear combination
# of random Variables, its distribution cannot be found directly.
# Instead the statistic is expressed as the solution to a linear
# estimating equation and hence its distribution can be found. We
# get the saddlepoint approximation to the pdf and cdf evaluated at
# t = 1.25 as follows.
jacobian <- function(dat,t,zeta)
{
p <- exp(zeta*(dat$x-t*dat$u))
abs(sum(dat$u*p)/sum(p))
}
city.sp1 <- saddle(A = city$x-1.25*city$u, u = 0)
city.sp1$spa[1] <- jacobian(city, 1.25, city.sp1$zeta.hat) * city.sp1$spa[1]
city.sp1
參考
Booth, J.G. and Butler, R.W. (1990) Randomization distributions and saddlepoint approximations in generalized linear models. Biometrika, 77, 787-796.
Canty, A.J. and Davison, A.C. (1997) Implementation of saddlepoint approximations to resampling distributions. Computing Science and Statistics; Proceedings of the 28th Symposium on the Interface, 248-253.
Davison, A.C. and Hinkley, D.V. (1997) Bootstrap Methods and their Application. Cambridge University Press.
Jensen, J.L. (1995) Saddlepoint Approximations. Oxford University Press.
也可以看看
相關用法
- R saddle.distn Bootstrap 統計的鞍點分布近似
- R salinity 水鹽度和河流排放
- R survival 輻射劑量後大鼠的存活率
- R simplex 線性規劃問題的單純形法
- R smooth.f 數據點上的平滑分布
- R poisons 動物生存時間
- R ducks 雜交鴨的行為和羽毛特征
- R nodal 前列腺癌的淋巴結受累
- R cloth 布料瑕疵數量
- R polar 新喀裏多尼亞紅土的極點位置
- R capability 模擬製造過程數據
- R beaver 海狸體溫數據
- R tsboot 時間序列的引導
- R logit 比例的邏輯
- R EEF.profile 經驗可能性
- R tau Tau 粒子衰變模式
- R gravity 重力加速度
- R boot 引導重采樣
- R plot.boot Bootstrap 模擬的輸出圖
- R boot.ci 非參數引導置信區間
- R tilt.boot 非參數傾斜引導
- R envelope 曲線的置信區間
- R bigcity 美國城市人口
- R co.transfer 一氧化碳轉移
- R imp.weights 重要性采樣權重
注:本文由純淨天空篩選整理自R-devel大神的英文原創作品 Saddlepoint Approximations for Bootstrap Statistics。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。