I need the code in SAS and R and outputs please 2. The data below come...

60.1K

Verified Solution

Question

Basic Math

I need the code in SAS and R and outputs please

2. The data below come from a study investigating a method ofmeasuring body composition, and give the body fat percentage (%fat), age and sex for 18 adults aged between 23 and 61 years.Source: Mazess, R.B., Peppler, W.W., and Gibbons, M. (1984) Totalbody composition by dual-photon (153GD) absorptiometry. AmericanJournal of Clinical Nutrition, 40, 834-839.

age% fatsex
239.5male
2327.9female
277.8male
2717.8male
3931.4female
4125.9female
4527.4male
4925.2female
5031.1female
5334.7female
5342.0female
5429.1female
5632.5female
5730.3female
5833.0female
5833.8female
6041.1female
6134.5female

a Enter the data into SAS using a DATALINES statement in theDATA step. Use PROC PRINT to print the resulting data set. Reportyour output.

b Create a data frame in R for the body composition data (frompart a). Print the data frame and report the output.

Answer & Explanation Solved by verified expert
3.8 Ratings (630 Votes)
a SAS code data mydata input age fat sex datalines 23 95 male 23 279 female 27 78 male 27 178 male 39 314 female 41 259 female 45 274 male 49 252 female 50 311 female 53 347 female 53 420 female 54 291 female 56 325 female 57 303    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students