在 R 中查找多元数据的 T^2 分位数
Find T^2 quantiles for multivariate data in R
我有一个包含 2 个变量的分区多元数据集的 T^2 统计量,通过计算配对比较测试找到。我想将我的 T^2 数字与 T^2_{.95, p, n-1} 值进行比较,而不使用 table.
R 中是否有函数或包可以让我找到这些值?
根据wikipedia,T^2 统计量通过
与 F 统计量相关
其中 .
由此得出(文章中也有写到)
In order to calculate a p-value, multiply the t2 statistic by the above constant and use the F-distribution.
也就是说,如果你隔离上面的$t^2$,你可以找到qf(.95, p, n - p) * (n-1) * p / (n - p)
,它应该是相关的T^2分位数。
请仔细阅读文章并确保您的自由度适当匹配。
我有一个包含 2 个变量的分区多元数据集的 T^2 统计量,通过计算配对比较测试找到。我想将我的 T^2 数字与 T^2_{.95, p, n-1} 值进行比较,而不使用 table.
R 中是否有函数或包可以让我找到这些值?
根据wikipedia,T^2 统计量通过
与 F 统计量相关其中
由此得出(文章中也有写到)
In order to calculate a p-value, multiply the t2 statistic by the above constant and use the F-distribution.
也就是说,如果你隔离上面的$t^2$,你可以找到qf(.95, p, n - p) * (n-1) * p / (n - p)
,它应该是相关的T^2分位数。
请仔细阅读文章并确保您的自由度适当匹配。