Hello,
Thank you Bradley.
I am afraid I do not know what package the function comes from (Google and I are not getting along today) I have loaded
library(statsr)
library(dplyr)
library(ggplot2).
I am new to R so I experimented a bit, my code might not make sense.
nc %>%
weeks_new <- as.factor(weeks) %>%
inference (y = weeks_new, data=nc, statistic = "mean", type = "ci", method = "theoretical", conf_level = 0,99)
inference (y = weeks_new <- as.factor(weeks), data=nc, statistic = "mean", type = "ci", method = "theoretical", conf_level = 0,99)
nc$weeks_new <- as.factor(nc$weeks)
inference (y = nc$weeks_new, data=nc, statistic = "mean", type = "ci", method = "theoretical", conf_level = 0,99)
nc <- nc %>%
mutate(weeks_new = as.factor(weeks)) %>%
inference (y = weeks_new, data=nc, statistic = "mean", type = "ci", method = "theoretical", conf_level = 0,99)
Do you know a better function for what I need?
The function works when I do not include conf_level = 0,99 in the end. By default I get a confidence level of 95% but need 99%)
inference (y = weeks, data=nc, statistic = "mean", type = "ci", method = "theoretical", conf_level = 0,99)