For future reference including your code is always good when asking a question. It gives a better idea of what you re actually trying to accomplish. There is a ton of different packages that produce summary statistics. In the base R environment, you can call
summary(your.data.frame)
and it gives some basic info.
当你开始走更深的路时,每个人都会有自己的选择,我实际上就象总结统计数据的心理包。
If you aren t familiar and are still learning. This package can be installed and loaded using:
install.packages("psych")
library(psych)
From here, you can use describe(your.data.frame) and index the columns with the statistics you want to store for a new data frame. For example:
new.df <- describe(your.data.frame)[,c(2,4,7,9)]
These are the columns you want to pull from.
I m not familiar with a package that also includes a T-test for variable CI s in an all in one stop. However, the base R package has a nice function that can perform a t-test to produce CI s for a vector.
t.test(your.data.frame$your.variable, conf.level = 0.95)$conf.int
它将在特定变量上进行笔试。 你们可能不得不在把成果指数化的同时发挥作用。 你们可以动用这笔钱。 公开并提供更多信息供你选择。
对于你关于分类变量的简要统计数据的问题,你可以将这些数据从原来的数据框架中排出,并利用某些不同的方法得出你想要的结果。 我将不断更新,但现在将检查这一联系。
https://bookdown.org/rwnahhas/IntroToR/summarizing-categorical-data.html