CommencerCommencer gratuitement

Generating via bootstrap

To assess your uncertainty in this estimate of the number of people that have "High" confidence in the scientific community, you need to calculate the standard error. Start by considering how different the data might look in just a single bootstrap sample.

Cet exercice fait partie du cours

Inference for Categorical Data in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Load the infer package
___

# Create single bootstrap dataset
boot1 <- gss2016 %>%
  # Specify the response
  ___(response = ___, success = "___") %>%
  # Generate one bootstrap replicate
  ___(reps = ___, type = "___")

# See the result
boot1
Modifier et exécuter le code