= In introductory statistical courses, you have learned how to test or estimate proportions. This is implemented by prop.test in R. Read the help file of prop.test function and understand the usage of this function. Suppose X1,..., X 20 is a random sample from Bernoulli(p 0.6) distribution. (Note: You can use rbinom(n,1,p) to generate this random sample, n = 20 in this case). Construct a 90% confidence in- terval for the parameter p using the prop.test function. Use a Monte Carlo method to obtain an empirical estimate of the confidence level and check if it is close to the nominal level 90%.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 12E: (Program) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question

using r language

=
In introductory statistical courses, you have learned how to test or estimate proportions. This is implemented
by prop.test in R. Read the help file of prop.test function and understand the usage of this function.
Suppose X1,..., X 20 is a random sample from Bernoulli(p 0.6) distribution. (Note: You can use
rbinom(n,1,p) to generate this random sample, n = 20 in this case). Construct a 90% confidence in-
terval for the parameter p using the prop.test function. Use a Monte Carlo method to obtain an empirical
estimate of the confidence level and check if it is close to the nominal level 90%.
Transcribed Image Text:= In introductory statistical courses, you have learned how to test or estimate proportions. This is implemented by prop.test in R. Read the help file of prop.test function and understand the usage of this function. Suppose X1,..., X 20 is a random sample from Bernoulli(p 0.6) distribution. (Note: You can use rbinom(n,1,p) to generate this random sample, n = 20 in this case). Construct a 90% confidence in- terval for the parameter p using the prop.test function. Use a Monte Carlo method to obtain an empirical estimate of the confidence level and check if it is close to the nominal level 90%.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT