Question
ID gender age height weight 1 male 47 175 209 2 male 43 176 210 3 female 41 176 175 Please report on the frequency
ID | gender | age | height | weight |
1 | male | 47 | 175 | 209 |
2 | male | 43 | 176 | 210 |
3 | female | 41 | 176 | 175 |
Please report on the frequency and percentage of missing data of all variables including newly created variable BMI, obtain a subset that contains individuals with complete information on all variables and state the size of this subset. I do not know how to obtain a subset that contains individuals with complete information in R programming. this table is a sample from the whole data set. the data set include some missing data.
for this question I found the BMI from this function
BMI = function(height,weight){ bmiR <- 0.45455*weight/(.0254*height)^2 return(bmiR) } # Calling the function
BMI(data['height'], data['weight'])
but now I'm so confused with this question.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started