{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Homework 2 notes\n", "\n", "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## General remarks\n", "\n", "### Use relative paths\n", "\n", "### Use Markdown effectively to communicate structure of the document\n", "\n", "General text\n", "\n", "### File naming convention\n", "\n", "From the next HW we will use the naming convention `BIOE806-HW03-FirstnameLastname.zip`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Final project\n", "\n", "Your project should be challenging, but approachable this semester. You need to have the\n", "data in hand by the end of this month, and I should be able to see the data as I will run\n", "your code to generate your final report." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. Creating a factor from a numeric variable\n", "\n", "### Read in the data; report the types of all variables.\n", "\n", "We first read in the data." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
ID | sex | Age | BMI | SBP | DBP | FBG | TC | Cr | GFR | UA | Times | hypertension | hyperglycemia | dyslipidemia | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<int> | <int> | <int> | <dbl> | <int> | <int> | <dbl> | <dbl> | <int> | <dbl> | <int> | <int> | <int> | <int> | <int> | |
1 | 1 | 2 | 79 | 24.35 | 132 | 83 | 6.20 | 4.65 | 54 | 116.182 | 284 | 1 | 1 | 1 | 1 |
2 | 1 | 2 | 81 | 25.24 | 136 | 85 | 6.09 | 4.97 | 95 | 57.605 | 208 | 2 | 1 | 1 | 1 |
3 | 1 | 2 | 83 | 23.43 | 120 | 86 | 6.16 | 4.92 | 66 | 89.899 | 230 | 3 | 1 | 1 | 1 |
4 | 1 | 2 | 85 | 24.70 | 144 | 80 | 6.24 | 5.15 | 50 | 126.093 | 199 | 4 | 2 | 1 | 1 |
5 | 2 | 2 | 63 | 27.27 | 120 | 73 | 5.37 | 4.08 | 63 | 100.027 | 247 | 1 | 1 | 1 | 1 |
6 | 2 | 2 | 65 | 25.92 | 120 | 74 | 5.25 | 4.74 | 74 | 81.554 | 326 | 2 | 1 | 1 | 1 |