Question

Interpret R code answer ABC This is a coded variable such that a value of 0 represents 'no injury', 1 represents 'possible injury', 2 represents 'no incapacity', 3 represents &...

Interpret R code answer ABC

This is a coded variable such that a value of 0 represents 'no injury', 1 represents 'possible injury', 2 represents 'no incapacity', 3 represents 'incapacity', and 4 represents 'killed'.

> Severity  

  [1] 3 1 3 2 3 0 0 0 3 3 2 3 3 1 1 1 2 0 3 3 0 1 2 0 1 3 0 3 0 3 0 3 1 2 2 4 2 

 [38] 3 1 1 3 3 3 3 2 1 3 3 0 1 2 3 0 3 3 3 0 0 1 3 1 0 3 3 0 1 0 3 1 0 1 3 3 0 

 [75] 3 3 0 3 3 2 2 2 0 1 3 3 4 3 2 3 2 0 0 3 1 3 0 2 1 3 0 2 3 0 0 0 1 0 0 1 1

[112] 0 0 3 3 1 3 3 2 1 2 0 3 1 0 3 1 3 3 1 3 3 0 0 2 2 1 3 3 0 0 1 2 3 0 0 1 2

[149] 2 3 0 0 1 0 3 3 3 3 2 2 1 2 0 0 1 1 1 3 1 3 4 2 1 2 0 1 2 1 0 1 3 3 3 3 4

[186] 0 3 3 1 4 0 0 0 0 0 1 0 0 0 0

Levels: 0 1 2 3 4

> count <- summary(Severity)

> count 

 0  1  2  3  4

56 42 29 68  5

> prop.test(count[4],sum(count),p=.4,alternative='less',correct=FALSE)



        1-sample proportions test without continuity correction



data:  count[4] out of sum(count), null probability 0.4

X-squared = 3, df = 1, p-value = 0.04163

alternative hypothesis: true p is less than 0.4

95 percent confidence interval:

 0.0000000 0.3969047

sample estimates:   p 0.34 

 

Answer abc

  1. A- What hypotheses are being tested by the last line of code? Give both the null hypothesis and the alternative hypothesis
  2. B -What is the p-value associated with this test?
  3. C -The first item specified in prop.test is count[4]. What is the value of count[4]? That is, if you were to enter count[4] in the R console, what value would be returned?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

From e given out pu Counb 4J68 The yal 6 is Retun

Add a comment
Know the answer?
Add Answer to:
Interpret R code answer ABC This is a coded variable such that a value of 0 represents 'no injury', 1 represents 'possible injury', 2 represents 'no incapacity', 3 represents &...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Severity [1] 3 1 3 2 3 0 0 0 3 3 2 3 3 1...

    Severity [1] 3 1 3 2 3 0 0 0 3 3 2 3 3 1 1 1 2 0 3 3 0 1 2 0 1 3 0 3 0 3 0 3 1 2 2 4 2 [38] 3 1 1 3 3 3 3 2 1 3 3 0 1 2 3 0 3 3 3 0 0 1 3 1 0 3 3 0 1 0 3 1 0 1 3 3 0 [75] 3 3...

  • 15. The data table represents the measure of a variable before and after a treatment. Does...

    15. The data table represents the measure of a variable before and after a treatment. Does the sample evidence suggest that the treatment is effective in decreasing the value of the response variable? Use the a= 0.05 level of significance. Complete parts (a) through (d). Individual Before, After, y 1 40 4 2 30 3 52 5 36 50 38 33 48 47 31 (a) What type of test should be used? Choose the correct answer below. O A. A...

  • Q. The p-value represents the probability: 1. that we observe data as extreme as the one...

    Q. The p-value represents the probability: 1. that we observe data as extreme as the one we saw if the null hypothesis is true. 2. that we observe data as extreme as the one we saw if the alternative hypothesis is true. 3. that we observe data as extreme as the one we saw if the alternative hypothesis is false. 4. that the null hypothesis is true given that we observed data as extreme as the one we saw. 5....

  • This Question: 1 pt 2 of 10 (0 completely Thi To test Hop-20 versus H 2...

    This Question: 1 pt 2 of 10 (0 completely Thi To test Hop-20 versus H 2 0, a simple random sample of size = 16 is obtained from a population that is known to be normally debuted. Answer parts card) IIClick here to view the t-Distribution Area in Right Tail (a) If x= 18.2 and ss 4.3, compute the best stastic - (Round to two decimal places as needed.) (b) Draw a I-distribution with the area that represents the P-value...

  • QUESTION 1 Practice with the p-value Calculator: What is the p value for a two-tailed test...

    QUESTION 1 Practice with the p-value Calculator: What is the p value for a two-tailed test given a t-value of 1.08 and sample size of 50? A. .1427 B..2854 C..8573 QUESTION 2 Practice with the p-value Calculator: What is the p value for a left-tailed test given a t-value of 1.08 and sample size of 50? A. .1427 B.2854 C..8573 QUESTION 3 Match the symbolic terms with its proper name. - Alternative Hypothesis Null Hypothesis - This is not an...

  • Determine whether the following llustrate a one-sided altemative hypothesis or a two-sided alternative hypothesis. 1.Ho: EM-...

    Determine whether the following llustrate a one-sided altemative hypothesis or a two-sided alternative hypothesis. 1.Ho: EM- Y, 0 vs. H1: Em>>Y. 0. This example lustrates a 2. Ho: EM.,Y, o vs. Hti Em s #x 0, This example llustrates a 3, Ho: EM.,Y, vs. MpE(Y) * #x0. This example illustrates a altenative hypothesis alternative hypothesis. alternative hypothesis Y altermative hypothesis states the value is olther greater than or less than py o but not both, whereas a alternative hypothesis simply...

  • Hello, I really need help on problems 1-4 listed below for my practice set. I appreciate...

    Hello, I really need help on problems 1-4 listed below for my practice set. I appreciate the help! 1. Which of the following is true with regard to a P-value? (More than one answer may be correct) a. The P-value is generated under the assumption that the null hypothesis is false. b. The P- value may never be negative. c. As the P-Value approaches 0 is it is less likely the null hypothesis will be rejected. d. In a left-tailed...

  • This Question: 1 pt 3 of 10 (0 complete) Test the hypothesis using the P.value approach. Be sure to verify the requ...

    This Question: 1 pt 3 of 10 (0 complete) Test the hypothesis using the P.value approach. Be sure to verify the requirements of the test Ho: P 0.8 versus H,: p>0.8 n 125; x=115; a-0.05 Click here to view page 1 of the table. Click here to view page 2.of the table Calculate the test statistic, zo Zo (Round to two decimal places as needed.) Identify the P-value. P-value (Round to three decimal places as needed.) Choose the correct result...

  • thank you for all the help! i appreciate everythjng! 1 2 3 (1 point) A random...

    thank you for all the help! i appreciate everythjng! 1 2 3 (1 point) A random sample of 100 observations from a population with standard deviation 8.31 yielded a sample mean of 91.5. Part 1: Part 2: Part 3: Given that the null hypothesis is j = 90 and the alternative hypothesis is #90 using a = .05, find the following: (a) Test statistic = (b) P-value: Note: Round off the test statistic to 2 decimal places and the P-value...

  • defects 1 4 1 0 3 4 2 1 3 1 0 5 1 3 3...

    defects 1 4 1 0 3 4 2 1 3 1 0 5 1 3 3 2 1 1 4 1 1 2 3 3 1 2 2 2 2 2 4 3 1 1 3 0 6 1 1 3 2 1 3 3 0 1 0 1 3 5A quality control engineer at a particular lcd screen manufacturer is studying the mean number of defects per screen. Based on historical evidence, the mean number of defects per screen...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT