# specifying for a point estimate on one variable
gss %>%
specify(response = age)
# specify a relationship between variables as a formula...
gss %>%
specify(age ~ partyid)
# ...or with named arguments!
gss %>%
specify(response = age, explanatory = partyid)
# more in-depth explanation of how to use the infer package
if (FALSE) {
vignette("infer")
}
Run the code above in your browser using DataLab