Question

Please show detailed R-code. Choose an inferential test of interest (ANOVA) and show using R code...

Please show detailed R-code. Choose an inferential test of interest (ANOVA) and show using R code that its statistical power is greater for alpha = 0.05 than for alpha = 0.001.

Homework Answers

Answer #1

Solution:

I choose left-tailed t-test

Ho : mu = 28

Ha: mu < 28

#power t-test left-tailed test
n <- 50
df <- n-1
s <- 5.6
xbar <- 25.9
t1 = qt(0.95 , df)
mu0 <- 28
rejectValue1 <- mu0 - t1 * s/sqrt(n)
rejectValue1
mu <- 22:27
power1 <- pt( (rejectValue1 -mu) /(s/sqrt(n)) , df)

plot(mu,power1, type="l", col="red" )


t2 = qt(0.999 , df)
mu0 <- 28
rejectValue2 <- mu0 - t2 * s/sqrt(n)
rejectValue2
mu <- 22:27
power2 <- pt( (rejectValue2 -mu) /(s/sqrt(n)) , df)
par(new=TRUE)
plot(mu,power2, type="l", col="green" )

red is when alpha = 0.05

green when alpha = 0.001

statistical power is greater for alpha = 0.05 than for alpha = 0.001

Know the answer?
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
Similar Questions
Could you please solve these using r code. 1. A pumpkin farmer weighed a simple random...
Could you please solve these using r code. 1. A pumpkin farmer weighed a simple random sample of size n = 20 pumpkins, with these results: 9.6, 8.8, 5.1, 9.7, 9.1, 8.9, 8, 9.2, 2.7, 9.1, 8.5, 7.3, 9.3, 9.6, 4.1, 9.9, 7.6, 9, 7.2, 8.5 (a) Create a QQ plot of the weights. Do you think it is reasonable to assume that the population distribution is normal? Explain your answer. (b) Regardless of your answer to (a), use R...
** Please only use RStudio to solve this problem and show code ** A fire department...
** Please only use RStudio to solve this problem and show code ** A fire department aims to respond to fire calls in 4 minutes or less, on average. Response times are normally distributed with a standard deviation of 1 minute. Would a sample of 18 fire calls with a mean response time of 4.5 minutes provide sufficient evidence to show that the goal is not being met at the significance level α = .01? Is this a left-tailed, right-tailed,...
Could you please solve these using r code if necessary. If not please show the work...
Could you please solve these using r code if necessary. If not please show the work thank you. 2. Most penguin species are not sexually dimorphic, which means they lack obvious outward body characteristics which indicate sex. Observation of behavior or a blood test can determine Penguin sex. A penguin researcher is interested in estimating the proportion of females in a large penguin population. She takes a random sample of n = 20 penguins and determines the sex of each...
[R code] x2 <- c(5.0, 3.9, 5.2, 5.5, 2.8, 6.1, 6.4, 2.6, 1.7, 4.3) Using ‘wilcox.test’...
[R code] x2 <- c(5.0, 3.9, 5.2, 5.5, 2.8, 6.1, 6.4, 2.6, 1.7, 4.3) Using ‘wilcox.test’ function. At a significance level of 0.05, Test “the mean is greater than 3.7.” Thank you :)
Please use R to answer and show R code. Random variable X is drawn from a...
Please use R to answer and show R code. Random variable X is drawn from a normal distribution with mean 5.44 and std dev 2.54. Calculate the probability of X being less than 3.29. What is the probability of X exceeding 4.61? What is the probability of X lying between 5.79 and 7.8? Verify your answers to parts 1 2 and 3 above using numerical sampling (please do this one!)
Basic Stat Psychology It covers z tests and inferential statistics Conduct a z-test PLEASE SHOW WORK...
Basic Stat Psychology It covers z tests and inferential statistics Conduct a z-test PLEASE SHOW WORK SO I CAN UNDERSTAND One-hundred test scores were recently obtained from a local high school to compare to the national average. The mean verbal SAT score for this sample was 445. Compare this sample to the population of SAT verbal test scores (SAT Verbal Test ? = 430 and ? = 120). Alpha=.05 A. Should a one-tailed or two-tailed test be used? B. State...
For part a could you show me how using r code make the necessary graphs, and...
For part a could you show me how using r code make the necessary graphs, and for part b show me the work for how to solve the problem. thank you 1. A dairy scientist is testing a new feed additive. She chooses 13 cows at random from a large population. She randomly assigns nold = 8 to the old diet and nnew = 5 to a new diet including the additive. The cows are housed in 13 widely separated...
Hello if you could please show work for the problems and show the necessary r code...
Hello if you could please show work for the problems and show the necessary r code for questions b and c I would appreciate it. Thank you A shoe manufacturer compared material A and material B for the soles of shoes. Twelve volunteers each got two shoes. The left was made with material A and the right with material B. On both shoes, the material was 1 inch thick. Volunteers used the shoes normally for two months and returned them...
Inferential Statistics. Choose the term to the right that best completes the sentence. You may use...
Inferential Statistics. Choose the term to the right that best completes the sentence. You may use any of the terms once, more than once, or not at all. Question 2 options: The probability of concluding group means are significantly different when really they aren’t has a value of _____. The value(s) which separate the rejection region from the non-rejection region is the _____. Reducing statistical power makes a _____ more likely. Finding a significant difference in a sample when there...
Using R Studio (Include R Code) A current Webster SGA polls show that for voters, 41.8%...
Using R Studio (Include R Code) A current Webster SGA polls show that for voters, 41.8% support Carol Davis, 39.2% support Josh Foster, and 19.0 % support Aaron Andrews. We conduct our own poll of 342 Walker School voters and get the following proportions: 43.1% Davis, 40.3% Foster, and 16.6% Andrews. Use the chi-squared hypothesis test to determine whether our survey is representative of typical Webster voters [point: if our survey is representative, the p-value should have us accept the...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT