Question

In: Statistics and Probability

Please answer a statistic problem(please answer all subquestions). Thank you very much. NCbirths, cont' d. This...

Please answer a statistic problem(please answer all subquestions). Thank you very much.

NCbirths, cont' d. This time we will use a subset of the dataset after removing premature birth (36 weeks or sooner) and continue to use MomRace as the explanatory variable to predict birth weight.

To get NCbirths:

install.packages("Stat2Data")
library(Stat2Data)
data("NCbirths")

(a) Use the following R command to remove premature birth and create a dataset noPremie.

noPremies<-subset(NCbirths, NCbirths$Premie==0) ##subset(dataName, condition)

(b) Construct a side-by-side boxplot of birth weights separated by MomRate.

(c) Use tapply() or mean() to estimate group effects (αk)

(d) Conduct ANOVA F-test to assess whether there is at least one group effect statistically significant.

i) Copy and paste ANOVA table generated using R,

ii) check assumptions,

iii) Write all the 5 steps of the hypothesis test.

(e) Modify R command provide below to apply Fisher’s LSD to investigate which racial groups differ significantly from which others. Copy and paste R output. Summarize your conclusion.

#install.packages("agricolae")

#install outside r markdown, install in the Rstudio console or in an R script.

library(agricolae)

LSD.test(yourANOVAmodel, "groupVariableName", group=FALSE, console=T)

(f) This is a fairly large sample (over 1200 observations after removing premature births) so even relatively small difference in group means might yeild significant results. Do you think that the difference in mean birth weight among these racial groups are important in a practical sense? (Hint: do you think the estimated group effect (αk) from part (c) are meaningful in reality?) Explain briefly.

Solutions

Expert Solution

install.packages("Stat2Data")
library(Stat2Data)
data("NCbirths")
#a
noPremies<-subset(NCbirths, NCbirths$Premie==0) ##subset(dataName, condition)
#b
boxplot(BirthWeightOz ~ MomRace, data = noPremies)

#c
tapply(noPremies$BirthWeightOz, noPremies$MomRace, mean)

#d
model <- aov(BirthWeightOz ~ MomRace, data = noPremies)

summary(model)

Output

b)

c)

d)

Ho : m1 = mu2 = mu3 = mu4

Ha: at least one mean is different

TS = 8.401

since p-value = 0 < alpha

there is significant difference in means

e)


install.packages("agricolae")
library(agricolae)

LSD.test(model, "MomRace", group=FALSE, console=T)

Black and hispanic and Black and white vary significantly

as p-value < alpha


Related Solutions

PLEASE ANSWER ALL 4 THANK YOU VERY MUCH!!!! 1. How was the Periodic Table originally organized?...
PLEASE ANSWER ALL 4 THANK YOU VERY MUCH!!!! 1. How was the Periodic Table originally organized? Explain the current organization of the Periodic Table and why it is a more accurate layout of the elements. 2. What is the difference between groups and periods? What are the common names for groups IA, IIA, VIIA, VIIIA? 3. Why were elements in group 18, VIIIA, formerly known as inert gases? How is the current name of “noble gases” more appropriate? Provide examples...
Please type the answer for i can copy it. Thank you very much. -Question 1 Respond...
Please type the answer for i can copy it. Thank you very much. -Question 1 Respond to the following in a minimum of 175 words: Read the following pseudocode class definitions: Class Plant Public Module message() Display "I'm a plant." End Module End Class Class Tree Extends Plant Public Module message() Display "I'm a tree." End Module End Class -Question 2 Given these class definitions, determine what the following pseudocode will display: Declare Plant p Set p = New Tree()...
These subquestions are all apart of the same question for my homework! Thank you for your...
These subquestions are all apart of the same question for my homework! Thank you for your help in advance! A) As with most bonds, consider a bond with a face value of $1,000. The bond's maturity is 8 years, the coupon rate is 7% paid annually, and the market yield (discount rate) is 19%. What is the bond's Current Yield? B) What is the price of a bond with the following features? 8 years to maturity, face value of $1000,...
HI please answer all parts of my question. Thank you so much! I will rate you!...
HI please answer all parts of my question. Thank you so much! I will rate you! Why do we call cardiac muscle to be a syncytium of many individual muscle cells? What is the name of membranes that connect longitudinally adjacent muscle cells? As you know the mechanism of organophosphates involves irreversible inhibitors of AChE. Organophosphates have been used in several murders (VX used to kill the half-brother of North Korean dictator Kim Jong Un; Sarin gas used to kill...
This is all one question, thank you very much in advance! You must evaluate a proposal...
This is all one question, thank you very much in advance! You must evaluate a proposal to buy a new milling machine. The base price is $189,000, and shipping and installation costs would add another $16,000. The machine falls into the MACRS 3-year class, and it would be sold after 3 years for $103,950. The applicable depreciation rates are 33%, 45%, 15%, and 7%. The machine would require a $7,000 increase in net operating working capital (increased inventory less increased...
Problem 1: Healthcare for all American Please type the answer, thank you . A Gallup poll...
Problem 1: Healthcare for all American Please type the answer, thank you . A Gallup poll found that 493 of 1050 adult Americans believe it is the responsibility of the federal government to make sure all Americans have healthcare coverage. What is the sample in this study? What is the population of interest? What is the variable of interest in this study? Is it qualitative or quantitative? Based on the results of this study, obtain a point estimate for the...
Please answer the below, all parts! Thank you in advance. Option 1: Think of a problem...
Please answer the below, all parts! Thank you in advance. Option 1: Think of a problem dealing with two possibly related variables (Y and X) that you may be interested in. Share your problem and discuss why a regression analysis could be appropriate for this problem. Specifically, what statistical questions are you asking? Why would you want to predict the value of Y? What if you wanted to predict a value of Y that’s beyond the highest value of X...
Please use excel to find the following, thank you very much! (8) A sample of 600...
Please use excel to find the following, thank you very much! (8) A sample of 600 Scholastic Aptitude Test (SAT) results has mean of 500 and standard deviation of 100. a. Determine the score below which 10% of the values lie. b. Determine the score above which 10% of the values lie. c. Determine a 95% confidence interval for the true mean.
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1/...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1/ What is one similarity and one difference between voluntary motor system that innervate the head versus voluntary motor system that innervate the body? 2/ Does olfactory bulb (direct) relay to primary sensory cortex via the thalamus? 3/ Write a short paragraph using the following terms: opiates; endorphins, pain relief. 4/ In your own words, explain one way in which neuroplasticity allows learning and memory...
Can you please answer all questions and please answer as soon as possible THANK YOU 1/...
Can you please answer all questions and please answer as soon as possible THANK YOU 1/ what do you think wernicke’s area of an infant develops prior to Broca’s? 2/ Create a short paragraph using the following terms: fovea, cones, rods, peripheral retina, acuity, center of the visual field? 3/ Why cone receptors are able to send information about different frequencies of light? 4/why do you think it is easier to name a taste in food than a smell in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT