简体   繁体   English

如何计算 r 中威廉姆斯趋势检验的 ap 值(SAS 中“PROBMC”的类似函数)

[英]How to calculate a p value for Williams trend test in r (Similar function of "PROBMC" in SAS)

I want to calculate p values for William trend test in R, given that I have already known the t statistics.鉴于我已经知道 t 统计量,我想计算 R 中威廉趋势检验的 p 值。 In SAS, I can use function PROBMC as shown below在 SAS 中,我可以使用函数 PROBMC,如下所示

 PROBMC(distribution, q, prob, df, nparms<, parameters>)

Below is an example下面是一个例子

       if parameters t=2.6,  k = 6, [nu] = 42, and t = 2.60 then probability is .9924467341.
       using (prob=probmc("williams",2.6,.,42,6);)

Is there a similar function in R to do this? R中是否有类似的功能来做到这一点?

I think you're probably out of luck.我想你可能不走运。

Using library("sos"); findFn("Williams trend distribution")使用library("sos"); findFn("Williams trend distribution") library("sos"); findFn("Williams trend distribution") and searching through the results finds two packages, PMCMCR and StatCharrms , that have functions to perform the Williams test, but it looks like these only use the tabulated values from the paper to get critical values for p=0.05 - not compute the distribution/p-value directly. library("sos"); findFn("Williams trend distribution")并搜索结果找到两个包PMCMCRStatCharrms ,它们具有执行威廉姆斯测试的功能,但看起来这些仅使用论文中的列表值来获得 p= 的临界值0.05 - 不直接计算分布/p 值。

The computation to get the full distribution/p-values looks pretty hairy, making it less likely that someone will have decided to implement it in R. As described in the SAS documentation for the PROBMC function获得完整分布/p 值的计算看起来非常繁琐,因此不太可能有人决定在 R 中实现它。如PROBMC 函数SAS 文档中所述

As described in Williams (1971) (See References ), the full computation is extremely lengthy and is carried out in three stages.如 Williams (1971)(参见参考资料)所述,完整的计算非常冗长,分三个阶段进行。

This would make a nice computational statistics project for someone ...这对某人来说是一个很好的计算统计项目......

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何计算 RStudio 中的 Williams %R? - How to calculate Williams %R in RStudio? 连续使用Williams测试确定发现显着趋势后的最小有效剂量(使用R中的multcomp包) - Sequential use of the Williams test to determine the minimum effective dose after finding a significant trend (using the multcomp package in R) SAS PWENCODE有类似的R功能吗? - Is there similar R function to SAS PWENCODE? 如何计算 R 中许多数据集的每个变量的 kruskal.test 并保存 p 值 - How calculate kruskal.test for each variable for many datasets in R and save p-value 如何使用 r 中的 shapiro.test 计算具有 NA 值的数据框中每列的 p.value? - How to calculate p.value of each column in a data frame with NA values using shapiro.test in r? 如何使用 gtsummary 包在 tbl_regression 表中添加趋势 p 值测试 - How to add test for trend p-value in tbl_regression table using gtsummary package 是否有 R 函数或包来计算 GLMM 中斜率的 p 值与交互 - Is there a R function or package to calculate the p value of a slope in a GLMM with interactions R如何从趋势包计算森斜率函数的截距? - R How to calculate the intercept of sen's slope function from trend package? 为 2 y 轴散点图中的单边重复测量测试添加中值趋势线和 p 值 [R] - Add median trend line and p-value for one-sided repeated measures test in 2-y axis scatter plot [R] 如何在 R 中测试趋势是随机的还是确定性的 - How to test if trend is stochastic or deterministic in R
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM