Conduct a t-test comparing the mean age

Assignment Help Applied Statistics
Reference no: EM133330131

For this assignment you will use the NHANES17 dataset (you may have renamed this dataset).

You will use the following new variables for this homework assignment: hsq500 hsq510 hsq520, in addition to variables described below. All categorical variables should have value labels. Exclude refused, not ascertained, and don't know responses for all variables.
Please refer to the documentation: Demographics andHealth conditions.

Question 1) Create a macro (called condition) with these 3 variables in the health conditions dataset.
HSQ500 - SP have head cold or chest cold
HSQ510 - SP have stomach or intestinal illness?
HSQ520 - SP have flu, pneumonia, ear infection?
Use this macro to replace the 7 (refused) and 9 (don't know) values with missing (.) values. Also change the No values from 2 to 0. Add value labels for 1 (yes) and 0 (no). Create frequency tables for the 3 variables (1 variable per table)
Paste your code and frequency tables

Question 2) Use the variables that you recoded in #3 to create a new variable (condition_count) with the categories below. Add value labels and a variable label.(HINT: if #1 is correct, you should be able to sum the values for the 3 variables).
0: has none of these conditions
1: has 1 of these conditions
2: has 2 of these conditions
3: has 3 of these conditions
Create a frequency table for the new variable

Question 3) Run a chi square test and Fisher's exact test with gender (in the rows) and condition_count in the columns. Limit the analysis to people between 45 and 65 years of age.

Question 4) Conduct a t-test comparing the mean age between people who had zero conditions (condition_count=0) and people who had three conditions (condition_count=3).

Question 5) Run an ANOVA with age (ridageyr) as the continuous variable and the variable that you created in #2(condition_count) as the categorical variable. Include the means for each group in your analysis and the Scheffe's post hoc tests.

Question 6) Run both a Pearson's correlation analysis and a Spearman's rank correlation analysis (with correlation coefficients and p-values). Include age (ridageyr), ratio of family income to poverty (indfmpir), and number of people in the household (dmdhhsiz). Limit the analysis to married females.

Attachment:- Biostatistical Programming.rar

Reference no: EM133330131

Questions Cloud

Discuss the tools and strategies used to coerce these groups : discuss the tools and strategies used to coerce these groups. What are they and why are these tools so effective? To what extent do the coerced groups accept
Case study of the decentralization of health and education : Critique paper about the case study of the decentralization of health and education services in the Philippines
Create a print ad for a selected magazine or a storyboard : Create a print ad for a selected magazine OR a storyboard (scene by scene plan) for a video ad. Topic of your choice - school appropriate though!
Why did the protest take place what was inciting incident : Why did the protest take place? What was the inciting incident? What is the background to that incident? Who organized the protest? Who were the protesters?
Conduct a t-test comparing the mean age : Biostatistical Programming Conduct a t-test comparing the mean age between people who had zero conditions and people who had three conditions
How prototype effect may operate in the way language affects : Consider your own food ways. Pick 3 examples and give a brief explanation their inside meaning, cultural origins or significance
How the new advertising industry is defining your identity : How the New Advertising Industry Is Defining Your Identity and Your Worth The Four-Letter Code to Selling Just About Anything: What Makes Things Cool?
How will the style of speech genre influence the reader : Who will speech genre reach? What parts of speech genre will help you express your ideas to your intended readers/viewers? How will the style of speech genre
How is physical violence a good example of how protests : How is physical violence a good example of how protests might degenerate? How does this reflect King's views? How is the freedom of white people inextricably

Reviews

Write a Review

Applied Statistics Questions & Answers

  Use a statistical software package to fit model to the data

Propose a first-order model for y as a function of all seven independent variables.- Use a statistical software package to fit the model to the data in the table.

  BUSI 3311 Business Statistics Assignment

BUSI 3311 Business Statistics Assignment Help and Solution, Texas A&M University - Assessment Writing Service

  Find an example of misleading use of statistics in magazine

Find an example of a misleading use of statistics in a newspaper, magazine, corporate annual report, or other source. Then explain why your example is misleading.

  Research problem with a minimum of one being peer-reviewed

1.  Find three articles relevant to your research problem with a minimum of one being peer-reviewed. Sources of non-peer reviewed articles may be trade journals or other sources recommended by your instructor.

  Develop a simulation model for given process

Develop a simulation model for this process - Run the simulation for 250 h to generate approximately 1000 job arrivals and collect data on cycle times for each

  How many degrees ould be assigned to pie slice for response

How many degrees (out of 360) would be assigned to the "pie slice" for the response (a)? How many degrees would be assigned to the "pie slice" for response (b)? Construct the pie chart for the exam question responses.

  The mean preparation fee h&r block charged retail

The mean preparation fee H&R Block charged retail customers in 2012 was $183. Use this price as the population means and assume the population standard deviation of preparation fees is $50.     a) What is the probability that the mean price for a sam..

  Write a report on simple data analysis and

write a report on simple data analysis and comparison.explain briefly how simple data analysis methods you are to use

  Find the minimum sample size needed

Find the minimum sample size needed. Construct a 95% confidence interval for the population standard deviation and interpret the results.

  Creating visual displays of data

For this portion of the activity, you will export output you created while working in SPSS for Chapter 4 into a Word document. Please read the instructions below to ensure you are including the correct material in your document (This chapter ha..

  Summarise the distribution of the grades for both exams

Introduction to Statistics Assignment, Cass Business School, London, UK. Summarise the distribution of the grades for both exams, according to the data given

  Probabilities

Probabilities

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd