title: How do i run Wald/Score/Likelihood Ratio Test in R with only one vector?
body: <p>I've calculated the test statistics by hand, but want to confirm that my answer is correct. I don't know where to start, after assigning the vector values.</p>
  
  <p>With large sample, the Wald test statistic, score test statistic, and likelihood ratio test statistic approximately have the chisquare df=1 distribution. Y~Binomial (1,pi) with P(Y=1)=pi and P(Y=0)=1-pi. Observations Yi, i = 1 to m are iid as Y.</p>
  
  <p>For m = 10, and data (0, 1, 0, 0, 1, 0, 0, 0, 1, 0), use these statistics to test the null hypothesis pi=0.3.</p>
  
  <p>Disclaimer: Although this is homework related, the R-part is not part of the homework. I'm curious as to whether I can run this problem in R to confirm my answers. </p>