Skip to content

Instantly share code, notes, and snippets.

@Harshit1694
Created May 7, 2019 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Harshit1694/bc1f560ba42b63268ff04e6f478d3043 to your computer and use it in GitHub Desktop.
Save Harshit1694/bc1f560ba42b63268ff04e6f478d3043 to your computer and use it in GitHub Desktop.
#Step 4 - Calculate the Margin of error
#____________________________________________________________
#Calculate the critical value of z
z<-qnorm(0.975)
#Calculate the margin of error
E<-z*(s/sqrt(70))
E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment