Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[R] I need help with the following problem in R. bmidata.txt: weight height 132 68 190 61 105 63 196 63 170 68 182 64

[R] I need help with the following problem in R. image text in transcribed

bmidata.txt:

weight height 132 68 190 61 105 63 196 63 170 68 182 64 156 60 200 60 112 65 191 60 163 67 141 67 99 67 169 63 165 61 155 65 192 66 120 68 153 64 153 64 137 62 161 72 122 68 198 63 95 61 124 61 140 60 193 61 181 60 180 68 147 61 108 63 149 63 161 64 152 65 97 61 113 63 165 65 194 66 106 61 96 68 179 61 147 62 185 68 188 64 93 65 184 63 140 67 107 60 117 69 115 69 170 71 144 62 111 66 187 62 130 71 119 67 187 72 116 66 116 64 152 71 172 68 175 64 173 64 128 62 140 72 130 67 154 61 129 62 114 60 146 66 198 60 136 69 107 69 195 67 108 69 108 66 130 66 197 66 164 65 160 71 161 64 128 72 103 66 143 66 149 66 97 60 122 64 135 71 173 60 136 68 100 69 160 60 115 67 96 63 176 68 153 60 182 64 158 61 168 63

3. There are 100 people participating in a study of Body Mass Index (BMI). Their weights (in lbs) and heights (in inches) are collected and stored in bmidata.txt file (download from Canvas) a) Read the data into R studio using your knowledge from previous labs. b) Create an empty vector called "BMI" c) Using a loop(either a for-loop or a while-loop) calculate the body mass index of each row of the table using the following formula and store it in BMI. Hint: for each row, get the weight value and the height value(ex. weight

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

Question Can life insurance be used in a Keogh (HR 10) plan?

Answered: 1 week ago