## FFFK6193 – Computer Based Analysis Using R Studio

Use the notes from here – https://www.slideshare.net/mobile/drtamil/introduction-to-data-analysis-with-r-and-r-studio

Do the following analysis on the data using R Studio then submit your answers via this LINK.

A study to identify factors that can cause small for gestational age (SGA) was conducted. Among the factors studied were the mothers’ body mass index (BMI). It is believed that mothers with lower BMI were of higher risk to get SGA babies.

1. Create a new variable mBMI (Mothers’ Body Mass Index) from the mothers’ HEIGHT (in metre) & WEIGHT (first trimester weight in kg). mBMI = weight in kg/(height in metre)2. Calculate the following for mBMI;

• Mean
• Standard deviation

2. Create a new variable OBESCLAS (Classification of Obesity) from mBMI. Use the following cutoff point;

• <20 = Underweight
• 20 – 24.99 = Normal
• 25 or larger = Overweight

Create a frequency table for OBESCLAS. Copy and paste the table into your Word file.

3. Conduct the appropriate statistical test to test whether there is any association between OBESCLAS (Underweight/Normal/Overweight) and OUTCOME.

Copy and paste the appropriate tables along with the interpretation into your Word file.

4. Conduct the appropriate statistical test to test whether there is any association between BMI and OUTCOME.

Copy and paste the appropriate tables along with the interpretation into your Word file.

5. Conduct the appropriate statistical test to find any association between OBESCLAS (Underweight/Normal/Overweight) and BIRTHWGT.

Copy and paste the appropriate tables along with the interpretation into your Word file.

6. Assuming that both variables mBMI & BIRTHWGT are normally distributed,

• conduct an appropriate statistical test to prove the association between the two variables.
• Demonstrate the association using the appropriate chart. Determine the coefficient of determination.

Copy and paste the above charts and your answers into your Word file.

7. Conduct Simple Linear Regression using BIRTHWGT as the dependent variable. Try to come out with a formula that will predict the baby’s birth weight based on the mother’s BMI.

y = a + bx

Copy and paste the appropriate tables and supporting chart along with the interpretation into your Word file.

Copy all the text (Ctrl-A, Ctrl-C) in the Command window and paste (Ctrl-V) into your Word file.

Save your Word file using your matric number as its filename i.e. P163341.doc. Now transfer your answers from the Word file onto this online form at LINK. Upon finishing, please click the SUBMIT button to submit your answers.

Just in case your answers go missing in the ether of cyberspace, please upload that file here in the Google Form.