我有一个panel(5x5)
5 年和 5 人每天消耗的冰淇淋的平均值。mean=50
我想为这个小组进行假设检验。请帮助在 R 中执行此操作。我不知道如何继续,所以我没有示例代码。以下是我的数据:
# dput(Sample)
structure(list(Year = c(2011, 2011, 2011, 2011, 2011, 2012, 2012,
2012, 2012, 2012, 2013, 2013, 2013, 2013, 2013, 2014, 2014, 2014,
2014, 2014, 2015, 2015, 2015, 2015, 2015), Person = c("A", "B",
"C", "D", "E", "A", "B", "C", "D", "E", "A", "B", "C", "D", "E",
"A", "B", "C", "D", "E", "A", "B", "C", "D", "E"),
'Mean of Ice-cream units per day' = c(45,
40, 35, 55, 65, 57, 49, 45, 32, 27, 85, 79, 85, 48, 35, 15, 6,
99, 45, 47, 49, 85, 35, 66, 99)), class = c("tbl_df", "tbl",
"data.frame"), row.names = c(NA, -25L), .Names = c("Year", "Person",
"Mean of Ice-cream units per day"))