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

Use your browser to download your Excel data from the following link;

Click HERE

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

Copy and paste your answers into your Word file.

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.

Advertisement

About drtamil@gmail.com

I am a lecturer in Faculty of Medicine, Universiti Kebangsaan Malaysia since 1996 (retiring on Nov 2022), teaching in Biostatistics and Epidemiology. My main interests are gadgets and cycling. You can connect with me at Facebook.
This entry was posted in FK6193, Minitest, R and tagged , . Bookmark the permalink.

3 Responses to FFFK6193 – Computer Based Analysis Using R Studio

  1. Dr. Yassin says:

    Password protected! Am I eligible for password Dear Prof.? Regards

    Dr. Yassin Ibrahim

    MBBS. MPH. PhD.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s