Newer
Older
}
},
{
"cell_type": "code",
"save_name = \"fig1I_WBC_myelo_baseline_emod\"\n",
"savepath = os.path.join(savefolder, save_name)\n",
"fig.tight_layout()\n",
"fig.savefig(savepath+\".pdf\", dpi=900, format='pdf')"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": 23,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"p-Value (Likelihood Ratio Test): 0.00706240810654952\n",
"Estimate: 0.723401625492519\n",
"Std. Error (Estimate): 0.258049356018904\n",
"Fixed Effect: 0.146437880098183\n",
"Std. Error (Fixed Effect) 0.258412927980769\n"
"source": [
"para = 'emodulus'\n",
"\n",
"Result = linmixmod(xs=df_myelo[para], treatment=df_myelo['treatment'],\n",
" #df_myelo['repeat'] begins at 0, but 0 values are excluded from the computation\n",
" timeunit=df_myelo['repeat']+1, model='lmm')\n",
"\n",
"print(\"p-Value (Likelihood Ratio Test):\", Result[\"p-Value (Likelihood Ratio Test)\"])\n",
"print(\"Estimate:\", Result[\"Estimate\"])\n",
"print(\"Std. Error (Estimate):\", Result[\"Std. Error (Estimate)\"])\n",
"print(\"Fixed Effect:\", Result[\"Fixed Effect\"])\n",
"print(\"Std. Error (Fixed Effect)\", Result[\"Std. Error (Fixed Effect)\"])"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
},
{
"cell_type": "markdown",
"source": [
"```\n",
"p-Value (Likelihood Ratio Test): 0.00706240810655399\n",
"Estimate: 0.723401625519808\n",
"Std. Error (Estimate): 0.258067695307158\n",
"Fixed Effect: 0.146437923010934\n",
"Std. Error (Fixed Effect) 0.258431194852495\n",
"```"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%% md\n"
}
}
},
{
"cell_type": "code",
"outputs": [],
"source": [],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}