- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 estpost
和 community-contributed 命令将 Spearman 相关矩阵导出到 rtf
或 Excel 文件中 esttab
。
但是,我收到以下错误:
invalid subcommand
r(198);
下面是我的代码:
estpost spearman varlists, matrix stats(rho p) star(.05)
estimates store cl
esttab * using corrtable.rtf, b(%6.3f) label alignment(l) unstack not noobs compress replace
最佳答案
spearman
命令不适用于 estpost
,这就是 Stata 提示的原因。
以下内容对我有用:
sysuse auto, clear
spearman price mpg weight
matrix A = r(Rho)
esttab matrix(A, fmt(%5.2f)) using corrtable.rtf
---------------------------------------------------
A
price mpg weight
---------------------------------------------------
price 1.00 -0.54 0.49
mpg -0.54 1.00 -0.86
weight 0.49 -0.86 1.00
---------------------------------------------------
关于stata - 如何导出 Spearman 相关性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57351327/
我有一个如下所示的数据框: Samples GENE GEN1 GEN2 GEN3 GEN4 GEN5 Sample1 21.0 160 110 3.90 2.62 16.5 Sa
我有两个维度相等的矩阵(p 和 e),我想在同名的列之间建立斯 PIL 曼相关。我想在矩阵 (M) 中输出对相关性 我使用了 Psych 库中的 corr.test() 函数,这是我所做的: libr
我有两个维度相等的矩阵(p 和 e),我想在同名的列之间建立斯 PIL 曼相关。我想在矩阵 (M) 中输出对相关性 我使用了 Psych 库中的 corr.test() 函数,这是我所做的: libr
我正在尝试使用 estpost 和 community-contributed 命令将 Spearman 相关矩阵导出到 rtf 或 Excel 文件中 esttab。 但是,我收到以下错误: inv
我正在寻找一种方法来计算 Spearman 秩相关 $\rho$ 的多变量版本。有没有我可以使用的现成的 Python 实现? 最佳答案 scipy 中有一个. 关于python - 多变量 Spea
之前的一篇文章解释了如何在 R 中对所有数据对执行卡方循环:Chi Square Analysis using for loop in R .我想使用此代码对 Spearman 相关性执行相同的操作。
我想将方法2、3、4的排名结果与方法1进行比较。在这方面,我想使用Spearman Rho系数。我还想知道方法2、3、4的结果与方法1是否有显着关系。那么该怎么做呢? database datab
我想将方法2、3、4的排名结果与方法1进行比较。在这方面,我想使用Spearman Rho系数。我还想知道方法2、3、4的结果与方法1是否有显着关系。那么该怎么做呢? database datab
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,因为
为了使我的问题可重现,我使用鸢尾花数据集(10 任意行,所有列标准标准化)和最小神经网络模型(预测花瓣宽度(使用萼片长度、萼片宽度和花瓣长度)通过修改我在互联网上找到的 MNIST 示例来实现。向下滚
我正在为面试官计算 Spearman 相关系数。它适用于 Interviewer_1...我不明白 Scipy 如何打断 interviewer_2 没有相关性/0/nan。 import panda
我想使用滚动窗口计算 DataFrame 两列之间的 Spearman 和/或 Pearson 相关性。 我试过df['corr'] = df['col1'].rolling(P).corr(df['
我想计算 spearman rank correlation使用 Python 和最有可能的 scipy 实现 (scipy.stats.spearmanr)。 手头的数据看起来像下面的方式(字典):
corrgram 库提供了绘制优雅相关图的机会。但是,文档中没有简单的方法可以在同一张图上同时获得 Spearman 和 Pearson 相关性。 也许计算两个系数的相关矩阵并将它们粘贴是一种选择,但
问题 我需要计算 Pearson 和 Spearman 相关性,并将其用作 tensorflow 中的指标。 对于 Pearson,这是微不足道的: tf.contrib.metrics.stream
我需要为具有不同长度的向量对(例如 5 元素向量到 20 元素向量)计算斯 PIL 曼等级相关性(使用 corr 函数)。每个长度的对数通常在 300 对以上。我使用 waitbar 跟踪进度。我注意
我正在使用下面的代码关联两个数据框。基本上,从一个数据框 (a) 中选择一组列,从另一个数据框 (b) 中选择一列。它工作得很好,除了我需要用长矛手的选项来做。我将不胜感激任何意见或想法。谢谢...
使用以下代码在 R 中构建 ggpairs 图。 df 是一个包含 6 个连续变量和一个 的数据框群 多变的 ggpairs(df[,-1],columns = 1:ncol(df[,-1]), ma
我想知道 R 中用于计算 Spearman rho 的 cor.test 函数是否tie-corrected。我在 official R documentation 中找不到直接的答案. 领带校正的
我有一个包含三个箱线图的图,我需要使用 ggplot2 或 ggpubr 显示箱线图对之间的 Spearman 相关性。 很容易绘制类似的图,但具有成对的 p 值。例如, library(ggpubr
我是一名优秀的程序员,十分优秀!