单阶段集群抽样
选择一个尺寸1,000名学生的单阶段群集样本,然后计算两个变量的平均值及其95%的置信区间。
变量1是类号码,V2是类中的学生编号,V3和V4是测试结果。
c1 <- sample(unique(test$V1), size=1000, replace=F)
c1_s <- test[test$V1 %in% c1,]
我已经完成了采样的编码,但是我需要在计算V3和V4及其95%CI的平均值的编码方面提供帮助。
Choose a single stage cluster sample of size 1,000 students and then calculate the mean value for both variables along with their 95% confidence interval.
Variable 1 is the class number, V2 is the Student number in the class, V3 and V4 is the test results.
c1 <- sample(unique(test$V1), size=1000, replace=F)
c1_s <- test[test$V1 %in% c1,]
I have done the coding for sampling, but I need help with the coding for calculating the mean value for V3 and V4 along with their 95% CI.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论