简体   繁体   English

R中重复测量的bw单向方差分析和单向方差分析有什么区别

[英]what‘s the difference bw One-way ANOVA and One-way ANOVA for repeated measures In R

for example one-way : aov.res2 <- aov(mark ~ teacher, data=my_data2) one-way for repeated measures : aov(mark ~ teacher + Error(essay/teacher), data=my_data2)例如单向:aov.res2 <- aov(mark ~ Teacher, data=my_data2) 单向重复测量:aov(mark ~ Teacher + Error(essay/teacher), data=my_data2)

what's the difference bw teacher + Error(essay/teacher) and teacher. bw老师+错误(论文/老师)和老师有什么区别。 1.why add plus Error() after teacher & what's that mean? 1.为什么在老师后面加加上Error()是什么意思? 2.why in the Error, we use essay/teacher not essay * teacher? 2.为什么在错误中,我们使用的是essay/teacher 而不是essay *teacher?

First, stackoverflow likely isn't the best place to ask such a theoretical question.首先,stackoverflow 可能不是提出这样一个理论问题的最佳场所。 There are other sites that lend better to your question.还有其他网站可以更好地解决您的问题。 Try Cross Validated .尝试交叉验证

Having studied statistics extensively, I will give you a high level answer and then direct you to look for more details in textbooks or elsewhere online.在广泛研究了统计学之后,我会给你一个高层次的答案,然后指导你在教科书或网上其他地方寻找更多细节。

Let's make sure we understand what repeated measures data is.让我们确保我们了解什么是重复测量数据。 An example of such data would be measuring the blood pressure of a patient every day for a week.此类数据的一个示例是在一周内每天测量患者的血压。 Hence we have several "repeated" measurements from one subject.因此,我们对一个对象进行了多次“重复”测量。 If we did this for many patients/subjects, we then have repeated measures data.如果我们对许多患者/受试者这样做,我们就会有重复的测量数据。

Repeated measures data is inherently different from other data because we expect that the data we observe from the same subject, say over time, will be correlated.重复测量数据本质上与其他数据不同,因为我们期望我们从同一主题观察到的数据,比如随着时间的推移,将相关联。 (Referring to our previous example, we expect that the blood pressure of a patient tomorrow will be related to the blood pressure of that same patient today.) If you have repeated measures data but don't model it as such, you are leaving out important information about how the data might be related within a subject. (参考我们之前的示例,我们预计明天患者的血压将与同一患者今天的血压相关。)如果您有重复的测量数据但没有对其进行建模,那么您就遗漏了关于数据在主题内如何相关的重要信息。 Modeling the data properly will then give you a more complete and accurate view, particularly in the variance.正确地对数据进行建模将为您提供更完整和准确的视图,尤其是在方差方面。 Said another way, the data collected from one patient does not vary the same way that the data varies between patients.换句话说,从一个患者收集的数据的变化方式与患者之间数据的变化方式不同。

Hopefully this helps you understand the nuances of the two methods in question.希望这可以帮助您了解所讨论的两种方法的细微差别。 Certainly I have not explicitly detailed the coding syntax, but I hope that this answer will help you understand why they are different.当然,我没有明确详细说明编码语法,但我希望这个答案能帮助您理解它们为何不同。 Once you understand the theory better, your questions will likely change and be more specific.一旦你更好地理解了理论,你的问题可能会改变并且更加具体。 Good luck!祝你好运!

I found the answer: The experimental object is measured multiple times, so there will be factors within the group.我找到了答案:实验对象是多次测量的,所以会有组内因素。 The factors within the group will be specially marked in the following form,组内因素会特别标注在以下表格中,

where "teacher" is the factor within the group, and "essay" is the ID of experimental object.其中“老师”为组内因素,“essay”为实验对象ID。

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

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