We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We are asked to generate a sample of size N from an urn with 52% blue beads. The code provided is as follows:
N <- 1000 p <- 0.52 x <- rbinom(N, 1, 0.5)
This is drawing a sample from a population with 50% blue beads. The correct code would be either
x <- rbinom(N,1,p)
or
x <-rbinom(N,1,0.52)
Am I mistaken?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We are asked to generate a sample of size N from an urn with 52% blue beads. The code provided is as follows:
This is drawing a sample from a population with 50% blue beads. The correct code would be either
or
x <-rbinom(N,1,0.52)
Am I mistaken?
The text was updated successfully, but these errors were encountered: