{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# GEE score tests\n", "\n", "This notebook uses simulation to demonstrate robust GEE score tests. These tests can be used in a GEE analysis to compare nested hypotheses about the mean structure. The tests are robust to miss-specification of the working correlation model, and to certain forms of misspecification of the variance structure (e.g. as captured by the scale parameter in a quasi-Poisson analysis).\n", "\n", "The data are simulated as clusters, where there is dependence within but not between clusters. The cluster-wise dependence is induced using a copula approach. The data marginally follow a negative binomial (gamma/Poisson) mixture.\n", "\n", "The level and power of the tests are considered below to assess the performance of the tests." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:56.424036Z", "iopub.status.busy": "2022-11-02T17:02:56.422524Z", "iopub.status.idle": "2022-11-02T17:02:57.776298Z", "shell.execute_reply": "2022-11-02T17:02:57.775434Z" } }, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "from scipy.stats.distributions import norm, poisson\n", "import statsmodels.api as sm\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The function defined in the following cell uses a copula approach to simulate correlated random values that marginally follow a negative binomial distribution. The input parameter `u` is an array of values in (0, 1). The elements of `u` must be marginally uniformly distributed on (0, 1). Correlation in `u` will induce correlations in the returned negative binomial values. The array parameter `mu` gives the marginal means, and the scalar parameter `scale` defines the mean/variance relationship (the variance is `scale` times the mean). The lengths of `u` and `mu` must be the same." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.780384Z", "iopub.status.busy": "2022-11-02T17:02:57.779998Z", "iopub.status.idle": "2022-11-02T17:02:57.784546Z", "shell.execute_reply": "2022-11-02T17:02:57.783983Z" }, "lines_to_next_cell": 1 }, "outputs": [], "source": [ "def negbinom(u, mu, scale):\n", " p = (scale - 1) / scale\n", " r = mu * (1 - p) / p\n", " x = np.random.gamma(r, p / (1 - p), len(u))\n", " return poisson.ppf(u, mu=x)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below are some parameters that govern the data used in the simulation." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.788025Z", "iopub.status.busy": "2022-11-02T17:02:57.787623Z", "iopub.status.idle": "2022-11-02T17:02:57.791817Z", "shell.execute_reply": "2022-11-02T17:02:57.791256Z" } }, "outputs": [], "source": [ "# Sample size\n", "n = 1000\n", "\n", "# Number of covariates (including intercept) in the alternative hypothesis model\n", "p = 5\n", "\n", "# Cluster size\n", "m = 10\n", "\n", "# Intraclass correlation (controls strength of clustering)\n", "r = 0.5\n", "\n", "# Group indicators\n", "grp = np.kron(np.arange(n/m), np.ones(m))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The simulation uses a fixed design matrix." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.795453Z", "iopub.status.busy": "2022-11-02T17:02:57.795208Z", "iopub.status.idle": "2022-11-02T17:02:57.800039Z", "shell.execute_reply": "2022-11-02T17:02:57.799349Z" } }, "outputs": [], "source": [ "# Build a design matrix for the alternative (more complex) model\n", "x = np.random.normal(size=(n, p))\n", "x[:, 0] = 1" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The null design matrix is nested in the alternative design matrix. It has rank two less than the alternative design matrix." ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.803726Z", "iopub.status.busy": "2022-11-02T17:02:57.803485Z", "iopub.status.idle": "2022-11-02T17:02:57.808199Z", "shell.execute_reply": "2022-11-02T17:02:57.807463Z" } }, "outputs": [], "source": [ "x0 = x[:, 0:3]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The GEE score test is robust to dependence and overdispersion. Here we set the overdispersion parameter. The variance of the negative binomial distribution for each observation is equal to `scale` times its mean value." ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.812188Z", "iopub.status.busy": "2022-11-02T17:02:57.811945Z", "iopub.status.idle": "2022-11-02T17:02:57.816063Z", "shell.execute_reply": "2022-11-02T17:02:57.815364Z" } }, "outputs": [], "source": [ "# Scale parameter for negative binomial distribution\n", "scale = 10" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In the next cell, we set up the mean structures for the null and alternative models" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.820686Z", "iopub.status.busy": "2022-11-02T17:02:57.820438Z", "iopub.status.idle": "2022-11-02T17:02:57.826160Z", "shell.execute_reply": "2022-11-02T17:02:57.825330Z" } }, "outputs": [], "source": [ "# The coefficients used to define the linear predictors\n", "coeff = [[4, 0.4, -0.2], [4, 0.4, -0.2, 0, -0.04]]\n", "\n", "# The linear predictors\n", "lp = [np.dot(x0, coeff[0]), np.dot(x, coeff[1])]\n", "\n", "# The mean values\n", "mu = [np.exp(lp[0]), np.exp(lp[1])]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below is a function that carries out the simulation." ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.830098Z", "iopub.status.busy": "2022-11-02T17:02:57.829835Z", "iopub.status.idle": "2022-11-02T17:02:57.838480Z", "shell.execute_reply": "2022-11-02T17:02:57.837743Z" } }, "outputs": [], "source": [ "# hyp = 0 is the null hypothesis, hyp = 1 is the alternative hypothesis.\n", "# cov_struct is a statsmodels covariance structure\n", "def dosim(hyp, cov_struct=None, mcrep=500):\n", " \n", " # Storage for the simulation results\n", " scales = [[], []]\n", " \n", " # P-values from the score test\n", " pv = []\n", " \n", " # Monte Carlo loop\n", " for k in range(mcrep):\n", "\n", " # Generate random \"probability points\" u that are uniformly \n", " # distributed, and correlated within clusters\n", " z = np.random.normal(size=n)\n", " u = np.random.normal(size=n//m)\n", " u = np.kron(u, np.ones(m))\n", " z = r*z +np.sqrt(1-r**2)*u\n", " u = norm.cdf(z)\n", "\n", " # Generate the observed responses\n", " y = negbinom(u, mu=mu[hyp], scale=scale)\n", "\n", " # Fit the null model\n", " m0 = sm.GEE(y, x0, groups=grp, cov_struct=cov_struct, family=sm.families.Poisson())\n", " r0 = m0.fit(scale='X2')\n", " scales[0].append(r0.scale)\n", " \n", " # Fit the alternative model\n", " m1 = sm.GEE(y, x, groups=grp, cov_struct=cov_struct, family=sm.families.Poisson())\n", " r1 = m1.fit(scale='X2')\n", " scales[1].append(r1.scale)\n", " \n", " # Carry out the score test\n", " st = m1.compare_score_test(r0)\n", " pv.append(st[\"p-value\"])\n", "\n", " pv = np.asarray(pv)\n", " rslt = [np.mean(pv), np.mean(pv < 0.1)]\n", " \n", " return rslt, scales" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Run the simulation using the independence working covariance structure. We expect the mean to be around 0 under the null hypothesis, and much lower under the alternative hypothesis. Similarly, we expect that under the null hypothesis, around 10% of the p-values are less than 0.1, and a much greater fraction of the p-values are less than 0.1 under the alternative hypothesis." ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:02:57.842548Z", "iopub.status.busy": "2022-11-02T17:02:57.842296Z", "iopub.status.idle": "2022-11-02T17:04:15.830535Z", "shell.execute_reply": "2022-11-02T17:04:15.829846Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " Mean Prop(p<0.1)\n", "H0 0.490046 0.110\n", "H1 0.055073 0.844\n" ] } ], "source": [ "rslt, scales = [], []\n", "\n", "for hyp in 0, 1:\n", " s, t = dosim(hyp, sm.cov_struct.Independence())\n", " rslt.append(s)\n", " scales.append(t)\n", " \n", "rslt = pd.DataFrame(rslt, index=[\"H0\", \"H1\"], columns=[\"Mean\", \"Prop(p<0.1)\"])\n", "\n", "print(rslt)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next we check to make sure that the scale parameter estimates are reasonable. We are assessing the robustness of the GEE score test to dependence and overdispersion, so here we are confirming that the overdispersion is present as expected." ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:04:15.836487Z", "iopub.status.busy": "2022-11-02T17:04:15.834194Z", "iopub.status.idle": "2022-11-02T17:04:16.157448Z", "shell.execute_reply": "2022-11-02T17:04:16.156335Z" } }, "outputs": [ { "data": { "text/plain": [ "Text(0, 0.5, 'Estimated scale')" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAkAAAAGdCAYAAAD60sxaAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy89olMNAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAyx0lEQVR4nO3de1yUdd7/8feAimiAYoFgICQWng/ddwYegiKVVW5Jzc3q1qy2ulfvMg8lrmmaSSfTXF3tsOWWWdsK2Z2bGpnHJEs8PKQVU4MkAS1dOXjAdbh+f/hjtgkwRmeYYa7X8/G4HjHf67rm+kzjMG++1/f6XhbDMAwBAACYiI+7CwAAAGhoBCAAAGA6BCAAAGA6BCAAAGA6BCAAAGA6BCAAAGA6BCAAAGA6BCAAAGA6TdxdgCeqqqpSUVGRAgICZLFY3F0OAACoB8MwVF5ervDwcPn4XLqPhwBUi6KiIkVERLi7DAAAcBkKCwt17bXXXnIbAlAtAgICJF38HxgYGOjmagAAQH2UlZUpIiLC9j1+KQSgWlSf9goMDCQAAQDQyNRn+AqDoAEAgOkQgAAAgOkQgAAAgOkQgAAAgOkQgAAAgOkQgAAAgOkQgAAAgOkQgAAAgOkwESIAeDmr1aqtW7equLhYYWFh6t+/v3x9fd1dFuBW9AABgBfLzMxUTEyMEhMTdffddysxMVExMTHKzMx0d2mAW9EDBABeKjMzUyNHjtSQIUM0depU+fv76+zZs1q7dq1GjhypVatWafjw4e4uE3ALi2EYhruL8DRlZWUKCgpSaWkp9wID0ChZrVbFxMTo6quv1k8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4gMDAN6Bq/5chwDkhfjAAIB34Ko/1yEAeSE+MAAAXBoBCGjkGPMFAI4jAAGNHGO+AMBxBCCgkWPMFwA4jgAENHKM+QIAx/m4uwAAAICGRgACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACmQwACAACm49YAtGXLFqWkpCg8PFwWi0WrV6+2W5+ZmamBAweqTZs2slgs2rNnT72e929/+5tiY2PVvHlzdevWTZ988onziwcAAI2WWwPQ6dOn1aNHDy1ZsqTO9f369dPzzz9f7+fcvn27Ro8erQceeEC7d+9WamqqUlNTlZub66yyAQBAI9fEnQdPTk5WcnJynev/+7//W5JUUFBQ7+d85ZVXNHjwYE2dOlWS9MwzzygrK0uLFy/WsmXLrqheAADgHbxuDFB2draSkpLs2gYNGqTs7Ow696msrFRZWZndAgAAvJfXBaCSkhKFhobatYWGhqqkpKTOfdLT0xUUFGRbIiIiXF0mAABwI68LQJcjLS1NpaWltqWwsNDdJQEAABdy6xggV2jbtq2OHTtm13bs2DG1bdu2zn38/Pzk5+fn6tIAAICH8LoeoLi4OG3YsMGuLSsrS3FxcW6qCAAAeBq39gBVVFTo0KFDtsf5+fnas2ePgoODFRkZqZMnT+rIkSMqKiqSJB04cEDSxV6e6h6dMWPGqF27dkpPT5ckPfbYY7rllls0f/58DRkyRO+//7527typ1157rYFfHQAA8FRu7QHauXOnevXqpV69ekmSJk2apF69emnmzJmSpP/7v/9Tr169NGTIEEnSXXfdpV69etldzn7kyBEVFxfbHsfHx2vlypV67bXX1KNHD61atUqrV69W165dG/CVAQAAT+bWHqCEhAQZhlHn+vvuu0/33XffJZ9j06ZNNdruvPNO3XnnnVdYHQAA8FZeNwYIAADg1xCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6RCAAACA6bg1AG3ZskUpKSkKDw+XxWLR6tWr7dYbhqGZM2cqLCxM/v7+SkpK0sGDBy/5nE8//bQsFovdEhsb68JXAQAAGpvLCkCHDx/WjBkzNHr0aB0/flyStHbtWn3zzTcOPc/p06fVo0cPLVmypNb1L7zwghYtWqRly5Zpx44datmypQYNGqRz585d8nm7dOmi4uJi27Jt2zaH6gIAAN7N4QC0efNmdevWTTt27FBmZqYqKiokSXv37tWsWbMceq7k5GTNnTtXd9xxR411hmFo4cKFmjFjhoYNG6bu3bvr7bffVlFRUY2eol9q0qSJ2rZta1uuvvpqh+oCAADezeEANG3aNM2dO1dZWVlq1qyZrf3WW2/Vl19+6bTC8vPzVVJSoqSkJFtbUFCQ+vTpo+zs7Evue/DgQYWHh+u6667TPffcoyNHjlxy+8rKSpWVldktAADAezkcgPbt21drj01ISIh++uknpxQlSSUlJZKk0NBQu/bQ0FDbutr06dNHy5cv17p167R06VLl5+erf//+Ki8vr3Of9PR0BQUF2ZaIiAjnvAgAAOCRHA5ArVq1UnFxcY323bt3q127dk4p6kokJyfrzjvvVPfu3TVo0CB98sknOnXqlD744IM690lLS1NpaaltKSwsbMCKAQBAQ3M4AN1111168sknVVJSIovFoqqqKn3xxReaMmWKxowZ47TC2rZtK0k6duyYXfuxY8ds6+qjVatWuv7663Xo0KE6t/Hz81NgYKDdAgAAvJfDAWjevHmKjY1VRESEKioq1LlzZw0YMEDx8fGaMWOG0wqLjo5W27ZttWHDBltbWVmZduzYobi4uHo/T0VFhQ4fPqywsDCn1QYAABq3Jo7u0KxZM73++ut66qmnlJubq4qKCvXq1UsdO3Z0+OAVFRV2PTP5+fnas2ePgoODFRkZqYkTJ2ru3Lnq2LGjoqOj9dRTTyk8PFypqam2fW677TbdcccdmjBhgiRpypQpSklJUfv27VVUVKRZs2bJ19dXo0ePdrg+AADgnRwOQNUiIyMVGRl5RQffuXOnEhMTbY8nTZokSRo7dqyWL1+uJ554QqdPn9ZDDz2kU6dOqV+/flq3bp2aN29u2+fw4cN2g69/+OEHjR49WidOnNA111yjfv366csvv9Q111xzRbUCAADvUa8AVB1M6uPll1+u97YJCQkyDKPO9RaLRXPmzNGcOXPq3KagoMDu8fvvv1/v4wMAAHOqVwDavXt3vZ7MYrFcUTEAAAANoV4BaOPGja6uAwAAoMFwN3gAAGA6lzUIeufOnfrggw905MgRnT9/3m5dZmamUwoDAABwFYcD0Pvvv68xY8Zo0KBB+vTTTzVw4EB9++23OnbsWK23yAAA1O7gwYOXvE2PM+3fv9/uvw0hICDgsqZIARqCwwFo3rx5WrBggcaPH6+AgAC98sorio6O1sMPP8xkgwBQTwcPHtT111/f4Me99957G/R43377LSEIHsnhAHT48GENGTJE0sVJEU+fPi2LxaLHH39ct956q2bPnu30IgHA21T3/KxYsUKdOnVy+fHOnj2rgoICRUVFyd/f3+XH279/v+69994G6+ECHOVwAGrdurXtH3S7du2Um5urbt266dSpUzpz5ozTCwQAb9apUyf17t27QY7Vt2/fBjkO0Bg4HIAGDBigrKwsdevWTXfeeacee+wxff7558rKytJtt93mihoBAACcyuEAtHjxYp07d06S9Ic//EFNmzbV9u3bNWLECKfeDBUAAMBVHA5AwcHBtp99fHw0bdo0pxYEAADgag4HoE8++US+vr4aNGiQXfunn34qq9Wq5ORkpxUHLpM1G95vwHvx+fYsDgegadOm6bnnnqvRXlVVpWnTphGAnIjLZM2F9xvwXny+PY/DAejgwYPq3LlzjfbY2FgdOnTIKUXhIi6TNRfeb8B78fn2PA4HoKCgIH333XeKioqyaz906JBatmzprLrwM1wmay6834D34vPtORy+GeqwYcM0ceJEHT582NZ26NAhTZ48Wf/1X//l1OIA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ZGk+baXVKls62ul8J7urscpztbUqXdJVUymjR3dylArRw+8bxv3z7dcccdNdpDQkL0008/OfRcW7ZsUUpKisLDw2WxWLR69Wq79YZhaObMmQoLC5O/v7+SkpJ08ODBX33eJUuWKCoqSs2bN1efPn301VdfOVQXAADwbg4HoFatWqm4uLhG++7du9WuXTuHnuv06dPq0aOHlixZUuv6F154QYsWLdKyZcu0Y8cOtWzZUoMGDdK5c3UPqvvrX/+qSZMmadasWdq1a5d69OihQYMG6fjx4w7VBgAAvJfDAeiuu+7Sk08+qZKSElksFlVVVemLL77QlClTNGbMGIeeKzk5WXPnzq21R8kwDC1cuFAzZszQsGHD1L17d7399tsqKiqq0VP0cy+//LJ+97vfady4cercubOWLVumFi1a6M0333T0pQIAAC/l8BigefPmafz48YqIiJDValXnzp1ltVp19913a8aMGU4rLD8/XyUlJUpKSrK1BQUFqU+fPsrOztZdd91VY5/z588rJydHaWlptjYfHx8lJSUpOzvbabU1FC6TBQDANRwOQM2aNdPrr7+umTNnat++faqoqFCvXr3UsWNHpxZWUlIiSQoNDbVrDw0Nta37pZ9++klWq7XWffLy8uo8VmVlpSorK22Py8rKLrdsp+IyWXMh8AJAw3E4AM2ZM0dTpkxRRESEIiIibO1nz57Viy++qJkzZzq1wIaQnp6u2bNnu7uMGrhM1lwIvADQcC7rXmCPPPKIWrRoYdd+5swZzZ4922kBqG3btpKkY8eOKSwszNZ+7Ngx9ezZs9Z9rr76avn6+urYsWN27ceOHbM9X23S0tI0adIk2+OysjK7cOcuXCZrLgReAGg4DgcgwzBksVhqtO/du1fBwcFOKUqSoqOj1bZtW23YsMEWeMrKyrRjxw79z//8T637NGvWTDfeeKM2bNig1NRUSVJVVZU2bNigCRMm1HksPz8/+fn5Oa124HIQeAGg4dQ7ALVu3VoWi0UWi0XXX3+9XQiyWq2qqKjQI4884tDBKyoqdOjQIdvj/Px87dmzR8HBwYqMjNTEiRM1d+5cdezYUdHR0XrqqacUHh5uCzeSdNttt+mOO+6wBZxJkyZp7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CC\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "_ = plt.boxplot([scales[0][0], scales[0][1], scales[1][0], scales[1][1]])\n", "plt.ylabel(\"Estimated scale\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next we conduct the same analysis using an exchangeable working correlation model. Note that this will be slower than the example above using independent working correlation, so we use fewer Monte Carlo repetitions." ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "execution": { "iopub.execute_input": "2022-11-02T17:04:16.161578Z", "iopub.status.busy": "2022-11-02T17:04:16.161290Z", "iopub.status.idle": "2022-11-02T17:04:53.485012Z", "shell.execute_reply": "2022-11-02T17:04:53.484333Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " Mean Prop(p<0.1)\n", "H0 0.526380 0.09\n", "H1 0.046456 0.86\n" ] } ], "source": [ "rslt, scales = [], []\n", "\n", "for hyp in 0, 1:\n", " s, t = dosim(hyp, sm.cov_struct.Exchangeable(), mcrep=100)\n", " rslt.append(s)\n", " scales.append(t)\n", " \n", "rslt = pd.DataFrame(rslt, index=[\"H0\", \"H1\"], columns=[\"Mean\", \"Prop(p<0.1)\"])\n", "\n", "print(rslt)" ] } ], "metadata": { "jupytext": { "cell_metadata_filter": "-all", "main_language": "python", "notebook_metadata_filter": "-all" }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.8" } }, "nbformat": 4, "nbformat_minor": 4 }