简体   繁体   English

心理包中的describe()没有提供完整的描述

[英]describe() from psych package not providing full descriptives

I need the full descriptives including all the moments, but when I use describe() from psych package, it doesn't give me the options I specify, for example skew and kurtosis, but it gives me all the deciles which I haven't specified for. 我需要包括所有时刻的完整描述,但是当我使用psych软件包中的describe()时,它没有给我指定的选项,例如偏斜和峰度,但它给了我所有我没有的决定指定。

Can't figure out what the issue is. 无法找出问题所在。 Anyone else had this issue and know how to solve? 其他人有这个问题,知道如何解决吗? I know I can get skew and kurtosis using skew()and kurtosis() but I want all the describes in one call, not item by item. 我知道我可以使用skew()和kurtosis()得到偏斜和峰度,但是我希望所有描述都在一个调用中,而不是逐项描述。

Here's my code: 这是我的代码:

s3desc <- describe(shrimp3s, skew = TRUE, ranges = TRUE, type = 1, quant = NULL, fast = NULL, IQR = TRUE) s3desc <-describe(shrimp3s,倾斜= TRUE,范围= TRUE,类型= 1,数量= NULL,快速= NULL,IQR = TRUE)

s3desc s3desc

What I get is: 我得到的是:

**> 13 Variables 95 Observations **> 13个变量95个观察值

-------------------------------------------------------------------------------------------------------------------------------------- pond.sqm n missing distinct Info Mean Gmd .05 .10 .25 .50 .75 .90 .95 95 0 42 0.986 3227 1559 1000 1000 2047 3500 4300 4560 5157 -------------------------------------------------- -------------------------------------------------- ---------------------------------- pool.sqm n缺少明显的信息均值.05 .10 .25。 50 .75 .90 .95 95 0 42 0.986 3227 1559 1000 1000 2047 3500 4300 4560 5157

lowest : 800 1000 1100 1200 1450, highest: 5290 5400 5500 5700 5840 --------------------------------------------------------------------------------------------------------------------------------------** 最低:800 1000 1100 1200 1450,最高:5290 5400 5500 5700 5840 ----------------------------------- -------------------------------------------------- ------------------------------------------------- * *

You have fallen into the multiple packages problem. 您陷入了多包问题。 You are actually running the describe function from Hmisc. 您实际上正在从Hmisc运行describe函数。

Try loading the psych package and then describe(shrimp) 尝试加载心理软件包,然后描述(虾)

Or, if you need to have the Hmisc package active, specify which describe you want. 或者,如果需要激活Hmisc程序包,请指定所需的描述。

psych::describe(shrimp)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM