Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HW02. The dataset pima that can be found in the faraway library is from a study conducted by The National Institute of Diabetes and

image text in transcribed

HW02. The dataset pima that can be found in the faraway library is from a study conducted by The National Institute of Diabetes and Digestive and Kidney Diseases on 768 adult female Pima Indians living near Phoenix. One variable collected was bmi (body mass index) which represents weight in kg/ (height in meters squared). Compute the mean, 0.05 trimmed mean, 0.10 trimmed mean, 0.05 winsorized mean, and 0.10 winsorized mean. Hint: load the psych library. Attach the data set pima to your session. The variable of interest is bmi. Use the Winsor_trim.R program from Lecture 2 as a guide. Tip: after you attach the pima dataset to your session, use the command >search which lists all attached packages and R objects (for example, datasets). Check to be sure there are no other datasets (such as prostate) attached to your session. Here is an example where both pima and prostate were attached to my R session. > search) [1] "GlobalEnv" "pima" "prostate" "package:psych" "package:faraway" "package:stats" "package:graphics" "package:grDevices" [9] "package:utils" "package:datasets" "package:methods" "Autoloads" "package:base" If prostate is attached to your session, then detach prostate from your session using the command >detach(prostate)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cornerstones of Cost Management

Authors: Don R. Hansen, Maryanne M. Mowen

2nd edition

1111824401, 978-1111824402

More Books

Students also viewed these Accounting questions