Question

Using R, code the following: The data set `normtemp` (**UsingR**) contains body measurements for 130 healthy,...

Using R, code the following:

The data set `normtemp` (**UsingR**) contains body measurements for 130 healthy, randomly selected individuals. The variable temperature contains normal body temperature data and the variable gender contains gender information, with male coded as 1 and female coded as 2. First, split the data by 'gender'. If the conditions for a two-sample t-test are met then perform the correct t-test to test if the population means (by gender) are equal. Make sure you run the correct test (are the variances equal or not and is the data independent). Is the difference statistically significant at the alpha=.05 level?

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Using R, code the following: The data set `normtemp` (**UsingR**) contains body measurements for 130 healthy,...
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
  • Using R, program the following. Problem 1 (11.4) *The data set `carsafety` (**UsingR**) contains car-crash data....

    Using R, program the following. Problem 1 (11.4) *The data set `carsafety` (**UsingR**) contains car-crash data. For several makes of car the number of drivers killed per million is recorded in 'Drivers.deaths'. The number of drivers of other cars killed in accidents with these cars, per million, is recorded in 'Other.deaths'. The variable 'type' is a factor indicating the type of car.* *(a) Perform a one-way ANOVA of the model Driver.deaths~type. Is there a difference in population means? Did you...

  • 3. The data set lowbwt.csv contains information for a sample of 100 low birth weight infants born...

    3. The data set lowbwt.csv contains information for a sample of 100 low birth weight infants born in two teaching hospitals in Boston, Massachusetts. Measurements of systolic blood pressure are saved under the variable name sbp and indicators of gender – with 1 representing a male and 0 a female – under the name sex. Answer the following questions using SAS. Please provide your SAS code and relevant SAS output. a. Construct a histogram of systolic blood pressure measurements for...

  • NEED R CODE PLEASE ## Problem 4 *For the `homedata` (**UsingR**) data set find 90% confidence...

    NEED R CODE PLEASE ## Problem 4 *For the `homedata` (**UsingR**) data set find 90% confidence intervals for both variables `y1970` and `y2000`, assuming the sample represents some population. Perform one sample t-test for each variable, use `t.test()`, but first discuss whether the model assumptions are appropriate (include some check of the assumptions, like a Q-Q plot).*

  • What is normal, when it comes to people's body temperatures? A random sample of 130 human body temperatures had a mean of 98.15° and a standard deviation of 0.74°. Does the data indicate that the average body temperature for healthy humans deviates from 9

    Test using the p-value approach with ? = 0.05.State the null and alternative hypothesis.H0: ? < 98.6 versus Ha: ? > 98.6H0: ? = 98.6 versus Ha: ? > 98.6    H0: ? = 98.6 versus Ha: ? < 98.6H0: ? = 98.6 versus Ha: ? ≠ 98.6H0: ? ≠ 98.6 versus Ha: ? = 98.6Find the test statistic and the p-value. (Round your test statistic to two decimal places and your p-value to four decimal places.)z=p-value=State your conclusion.The p-value is greater than alpha so H0 is not rejected. There is insufficient evidence to indicate that the average body temperature for healthy humans deviates from 98.6°.The p-value is less than alpha so H0 is rejected. There is sufficient evidence to...

  • help solve using T-84 calculator please A data set includes 106 body temperatures of healthy adult...

    help solve using T-84 calculator please A data set includes 106 body temperatures of healthy adult humans having a mean of 98.9°F and a standard deviation of 0.62F. Construct a 99% confidence interval estimate of the mean body temperature of all healthy humans. What does the sample suggest about the use of 98.6°F as the mean body temperature? Click here to view at distribution table. Click here to view page 1 of the standard normal distribution table. Click here to...

  • 10. You have a data set that contains information about individuals gender, the number of children they have, their family income, and whether they are in the labor force You estimate the followi...

    10. You have a data set that contains information about individuals gender, the number of children they have, their family income, and whether they are in the labor force You estimate the following linear probability model: Plaborforcel po+B1 children +B2 female +B3 (children x semale)+u a.) In terms of the model's parameters, what is the marginal effect of having an additional child on a woman's probability of being in the labor force? What is the marginal effect of having an...

  • top Suppose that a researcher, using wage data on 230 randomly selected male workers and 258 fermale workers, e...

    top Suppose that a researcher, using wage data on 230 randomly selected male workers and 258 fermale workers, estimates the OLS regression 4 Wage 11.518 +1.950 x Male, R 0,04, SER = 3.9, (0.2116) (0.3312) where Wage is measured in dollars per hour and Male is a binary variable that is equal to 1 if the person is a male and 0if the person is a female. Define the wage gender gap as the difference in mean earnings between men...

  • IN R CODE, consider the following data in the table: These figures provide the depths (in...

    IN R CODE, consider the following data in the table: These figures provide the depths (in centimeters) at which important archaeological finds were made at four sites in New Mexico (see Woosley and Mcintyre, 1996). Store these data in your R workspace, with one vector containing depth and the other vector containing the site of each observation. a. Produce side-by-side boxplots of the depths split by group, and use additional points to mark the locations of the sample means. b....

  • Compare the different Genders of subjects in the Psych_Data.xlsx data set to determine if there is...

    Compare the different Genders of subjects in the Psych_Data.xlsx data set to determine if there is a statistically significant difference in the mean Anxiety Scores (anx_score) between the different gender groups. Be sure to state the type of test, state the Ho and Ha, include all relevant Excel results and plots, and write final conclusions for the full results of the test in context. Be sure that your final conclusions are written in common terms for an average person to...

  • Do males and females have significant different GPAs? Following is the output of analysis for 26...

    Do males and females have significant different GPAs? Following is the output of analysis for 26 males and 25 females. 1. Which of the following statements are true regarding Levene’s F-test using a .05 level of significance? a. Means are significantly different b. Means are not significantly different c. Variances are significantly different d.Variances are not significantly different 2. From the chart above, what is the correct t-value, df, and Sig. used for the t-test: a. t(49)=0.326, p>0.05 b.t(49)=0.330, p>0.05...

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