Question

11. For the bp.obese data set, is there evidence to suggest that the mean blood pressure of Mexican American men is different

complete using R

use bp.obese data found in ISwR package
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The R-code is install.packages("ISwR")

#In dataset of bp.obese the sex is a numerical vector coded with Men=0 and Women=1

M=subset(bp.obese,sex==0)[,3]

W=subset(bp.obese,sex==1)[,3]

#We use t-test for testing the mean is differences

t.test(M,W)

The Output of the code is > install.packages("ISwR")

> #In dataset of bp.obese the sex is a numerical vector coded with Men=0 and Women=1

> M=subset(bp.obese,sex==0)[,3]

> W=subset(bp.obese,sex==1)[,3]

> #We use t-test for testing the mean differences

> t.test(M,W)

Welch Two Sample t-test

data: M and W

t = 0.46033, df = 98.535, p-value = 0.6463

alternative hypothesis: true difference in means is not equal to 0

95 percent confidence interval:

-5.443341 8.731743

sample estimates:

mean of x mean of y

127.9545 126.3103

#Since P-value=0.6463 >alpha=0.05 then we fail to reject the null hypothesis Ho

#Therefore there is not sufficient evidence to suggest that mean blood pressure of mexican-american men is different from that of mexican-american women in this small california town at 0.05 significance level

The image of code is

install.packages (ISWR) #In dataset of bp. obese the sex is a numerical vector coded with Men=0 and women=1 M=subset (bp. o

Add a comment
Know the answer?
Add Answer to:
complete using R use bp.obese data found in ISwR package 11. For the bp.obese data set,...
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
  • 3. R programming 3. This problem uses the wblake data set in the alr4 package. This...

    3. R programming 3. This problem uses the wblake data set in the alr4 package. This data set includes samples of small mouth bass collected in West Bearskin Lake, Minnesota, in 1991 Interest is in predicting length with age. Complete this problem without using Im( in R (a) Do the regression of length on age, and report the estimates, their standard errors and the estimate of variance. Interpret Bo and (b) Obtain a 900% confidence interval for βί fron the...

  • Write a R code for the following Using the SATGPA data set in Stat2Data package. Test...

    Write a R code for the following Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the following three variables and then print out all the six variables. Create a new variable “SAT”, which is the sum of MathSAT and VerbalSAT. Create second new variable “SATLevel”, and assign the value of “SATLevel” as 1 when SAT<=1100, 2 when 11001300. Create third new variable “GPALevel” and assign the value of “GPALevel” as 1 when GPA<=2.8,...

  • 3. This problem uses the wblake data set in the alr4 package. This data set includes...

    3. This problem uses the wblake data set in the alr4 package. This data set includes samples of small mouth bass collected in West Bearskin Lake, Minnesota, in 1991. Interest is in predicting length with age. Complete this problem without using Im) in R. (a) Do the regression of length on age, and report the estimates, their standard errors and the estimate of variance. Interpret Bo and B. (b) Obtain a 90% confidence interval for A from the data. Interpret...

  • Exercise 2. [Data analysis, requires R] For this questions use the bac data set from the...

    Exercise 2. [Data analysis, requires R] For this questions use the bac data set from the openintro library. To access this data set first install the package using install.packages ("openintro") (this only needs to be done once). Then load the pack- age into R with the command library(openintro). You can read about this data set in the help menu by entering the command ?openintro or help(openintro). Many people believe that gender, weight, drinking habits, and many other factors are much...

  • Need help for the coding using the R Markdown in R Studio for question2 and question2....

    Need help for the coding using the R Markdown in R Studio for question2 and question2. Please provide a detailed solution with an original R code, outputs and a clear statement of the final answer. First, verify by typing out the terms in the appropriate formulas for the t-statistic and the confidence limits that you and R agree about how these should be calculated. For instance, your R code should be structured the way the Excel commands for confidence limits...

  • Complete this homework by R and put the syntaxes of R and corresponding outputs under respective...

    Complete this homework by R and put the syntaxes of R and corresponding outputs under respective question [Example Question] Find the mean and the variance of milk yield data. > mean(task) [1] 36.15385 I apologized i put the wrong qs A medical researcher wishes to determine if a pill has the undesirable side effect of reducing the blood pressure of the user. The study involves recording the initial blood pressure of 15 college-age women. After they use the pill regularly...

  • Using program R, please help solve: Data set is in the program R. Can be found by inputing code: require(UsingR) homedat...

    Using program R, please help solve: Data set is in the program R. Can be found by inputing code: require(UsingR) homedata (if answered by Tuesday 6/11 evening, I will rate) 3.13 For the homedat a (UsingR) data set, make a histogram and density es- timate of the multiplicative change in values (the variable y2000/y 1970). De- scribe the shape, and explain why it is shaped thus. (Hint: There are two sides to the tracks.) 3.13 For the homedat a (UsingR)...

  • Use the given data set to complete parts​ (a) through​ (c) below.​ (Use a=​0.05.) X: 10...

    Use the given data set to complete parts​ (a) through​ (c) below.​ (Use a=​0.05.) X: 10 8 13 9 11 14 6 4 12 7 5 Y: 9.14 8.15 8.74 8.78 9.26 8.11 6.13 3.11 9.13 7.26 4.74   The linear correlation coefficient is r= Determine whether there is sufficient evidence to support the claim of a linear correlation between two variables. Identify the feature of the data that would be missed if part b was completed with out the construction...

  • ... Use the given data set to complete parts (a) through (C) below. (Use a =...

    ... Use the given data set to complete parts (a) through (C) below. (Use a = 0.05.) X 6 7 10 7.45 8 6.76 13 12.74 9 7.11 11 7.81 14 8.84 4 5.39 12 8.14 5 5.72 y 6.08 6.41 Click here to view a table of critical values for the correlation coefficient. a. Construct a scatterplot. Choose the correct graph below. OA. OB. OC. OD 16- AY 16- AY 167 AY 16 12- 12 12 a 12- 8-...

  • 2. R programming 2·The data set prostate in the faraway package is froma study on 97...

    2. R programming 2·The data set prostate in the faraway package is froma study on 97 men with prostate cancer who were due to receive a radical prostatectomy We are interest is in predicting lpsa (log prostate specific antigen) with Icavol (log cancer volume). (a) Draw a scatterplot -does a simple linear regression model seem reasonable? (b) Without using the R function Im), compute the values T,Y, Sxx, Syy and Sxy. Com- pute the ordinary least squares estimates of the...

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