Skip to content

Commit

Permalink
FINISHED GROUPED_CORR METHOD
Browse files Browse the repository at this point in the history
  • Loading branch information
dyhan316 committed Aug 3, 2022
1 parent 9385219 commit e73054b
Show file tree
Hide file tree
Showing 6 changed files with 986 additions and 863 deletions.
83 changes: 66 additions & 17 deletions .ipynb_checkpoints/age_correlation_sample_code-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "2ea013dd",
"id": "a3560a28",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -80,7 +80,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "bf04bae8",
"id": "a25c7d93",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -593,24 +593,73 @@
},
{
"cell_type": "markdown",
"id": "83d19947",
"id": "6bcd83a4",
"metadata": {},
"source": [
"### Playing Around"
]
},
{
"cell_type": "markdown",
"id": "17fd4454",
"id": "f0123236",
"metadata": {},
"source": [
"### 1. correlation"
]
},
{
"cell_type": "code",
"execution_count": 54,
"id": "baaef0fd",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.series.Series'>\n",
"Index(['NDARINV003RTV85', 'NDARINV007W6H7B', 'NDARINV00BD7VDC',\n",
" 'NDARINV00CY2MDM', 'NDARINV00LH735Y', 'NDARINV00LJVZK2',\n",
" 'NDARINV00NPMHND', 'NDARINV00R4TXET', 'NDARINV00U4FTRU',\n",
" 'NDARINV00UMK5VC',\n",
" ...\n",
" 'NDARINVZZ6ZJ2KY', 'NDARINVZZ81LEEV', 'NDARINVZZFG6J5U',\n",
" 'NDARINVZZJ3A7BK', 'NDARINVZZL0VA2F', 'NDARINVZZLZCKAY',\n",
" 'NDARINVZZNX6W2P', 'NDARINVZZPKBDAC', 'NDARINVZZZ2ALR6',\n",
" 'NDARINVZZZNB0XC'],\n",
" dtype='object', name='subjectkey', length=10243)\n"
]
},
{
"data": {
"text/plain": [
"Index(['nihtbx_totalcomp_uncorrected', 'nihtbx_fluidcomp_uncorrected',\n",
" 'nihtbx_pattern_uncorrected', 'nihtbx_picture_uncorrected',\n",
" 'nihtbx_list_uncorrected', 'nihtbx_flanker_uncorrected',\n",
" 'nihtbx_cardsort_uncorrected', 'nihtbx_cryst_uncorrected',\n",
" 'nihtbx_reading_uncorrected', 'nihtbx_picvocab_uncorrected', 'age',\n",
" 'female', 'race.ethnicity', 'high.educ', 'income', 'married',\n",
" 'abcd_site', 'vol', 'height', 'weight', 'BMI'],\n",
" dtype='object')"
]
},
"execution_count": 54,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"print(type(merged_data['age']))\n",
"series = merged_data['age']\n",
"print(series.index)\n",
"#type(merged_data)\n",
"merged_data.columns"
]
},
{
"cell_type": "code",
"execution_count": 36,
"id": "65da4757",
"id": "e8ec328d",
"metadata": {
"scrolled": false
},
Expand Down Expand Up @@ -800,7 +849,7 @@
{
"cell_type": "code",
"execution_count": 43,
"id": "21e1bf58",
"id": "8ee0ab63",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -838,7 +887,7 @@
{
"cell_type": "code",
"execution_count": 41,
"id": "e7fba777",
"id": "aea780a5",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1006,7 +1055,7 @@
},
{
"cell_type": "markdown",
"id": "7bd27df8",
"id": "cdaa6c87",
"metadata": {},
"source": [
"### 2. regression"
Expand All @@ -1015,7 +1064,7 @@
{
"cell_type": "code",
"execution_count": 46,
"id": "277f4204",
"id": "c7bc3159",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1217,23 +1266,23 @@
{
"cell_type": "code",
"execution_count": null,
"id": "17496d01",
"id": "7462ceec",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "0574a801",
"id": "f6a4ba2e",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "9e770829",
"id": "085430d4",
"metadata": {},
"outputs": [],
"source": []
Expand Down Expand Up @@ -1488,7 +1537,7 @@
{
"cell_type": "code",
"execution_count": 35,
"id": "bcdfe181",
"id": "0e4240d9",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1959,7 +2008,7 @@
},
{
"cell_type": "markdown",
"id": "1bfd046a",
"id": "127aa148",
"metadata": {},
"source": [
"## playing fun"
Expand All @@ -1968,7 +2017,7 @@
{
"cell_type": "code",
"execution_count": 15,
"id": "3535606d",
"id": "ce0bb2f5",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2041,7 +2090,7 @@
{
"cell_type": "code",
"execution_count": 22,
"id": "ace9276e",
"id": "cb660bdd",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2092,7 +2141,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9b408713",
"id": "94530516",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Loading

0 comments on commit e73054b

Please sign in to comment.