Displaying 3 results from an estimated 3 matches for "d_hat".
Did you mean:
b_hat
2025 Mar 29
3
Setting up hypothesis tests with the infer library?
...milar to:
===========================
df <- data.frame(
survey = c(rep("1980", 1000), rep("2010", 1000)),
DP = c(rep("Y", 0.66*1000), rep("N", 1000 - (0.66*1000)),
rep("Y", 0.64*1000), rep("N", 1000 - (0.64*1000))))
(d_hat <- df %>%
specify(response = DP, explanatory = survey, success = "Y") %>%
calculate(stat = "diff in props", order = c("1980", "2010")))
============================
My question is, is this the way I should be setting up datasets for
proble...
2025 Mar 29
2
Setting up hypothesis tests with the infer library?
...rame(
> > ???? survey = c(rep("1980", 1000), rep("2010", 1000)),
> > ???? DP = c(rep("Y", 0.66*1000), rep("N", 1000 - (0.66*1000)),
> > ??????????? rep("Y", 0.64*1000), rep("N", 1000 - (0.64*1000))))
> >
> > (d_hat <- df %>%
> > ????? specify(response = DP, explanatory = survey, success = "Y")
> > %>%
> > ????? calculate(stat = "diff in props", order = c("1980", "2010")))
> > ============================
> >
> > My question...
2025 Mar 29
2
Setting up hypothesis tests with the infer library?
...milar to:
===========================
df <- data.frame(
survey = c(rep("1980", 1000), rep("2010", 1000)),
DP = c(rep("Y", 0.66*1000), rep("N", 1000 - (0.66*1000)),
rep("Y", 0.64*1000), rep("N", 1000 - (0.64*1000))))
(d_hat <- df %>%
specify(response = DP, explanatory = survey, success = "Y") %>%
calculate(stat = "diff in props", order = c("1980", "2010"))) ============================
My question is, is this the way I should be setting up datasets for proble...