Skip to content

Commit 127f0d6

Browse files
author
bogorek
committed
edit
1 parent de72008 commit 127f0d6

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

reweighting/theory_of_resampling.ipynb

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -178,30 +178,10 @@
178178
},
179179
{
180180
"cell_type": "code",
181-
"execution_count": 56,
181+
"execution_count": 58,
182182
"id": "415a8dd0-d0c3-4927-b6c4-e7618ac21722",
183183
"metadata": {},
184184
"outputs": [
185-
{
186-
"name": "stdout",
187-
"output_type": "stream",
188-
"text": [
189-
"--Return--\n",
190-
"None\n",
191-
"> \u001b[0;32m/var/folders/vb/0yt4378s4gj946b2dghwgckh0000gp/T/ipykernel_3793/3163679643.py\u001b[0m(11)\u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n",
192-
"\u001b[0;32m 10 \u001b[0;31m\u001b[0mN_b_not_sampled\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mN_b\u001b[0m \u001b[0;34m-\u001b[0m \u001b[0mn_b\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
193-
"\u001b[0m\u001b[0;32m---> 11 \u001b[0;31m\u001b[0;32mimport\u001b[0m \u001b[0mipdb\u001b[0m\u001b[0;34m;\u001b[0m \u001b[0mipdb\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_trace\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
194-
"\u001b[0m\u001b[0;32m 12 \u001b[0;31m\u001b[0;34m\u001b[0m\u001b[0m\n",
195-
"\u001b[0m\n"
196-
]
197-
},
198-
{
199-
"name": "stdin",
200-
"output_type": "stream",
201-
"text": [
202-
"ipdb> c\n"
203-
]
204-
},
205185
{
206186
"name": "stdout",
207187
"output_type": "stream",
@@ -219,7 +199,7 @@
219199
")\n",
220200
"\n",
221201
"sample_sum = np.sum(sample.y)\n",
222-
"N_a_not_sampled = N_a - n_oa\n",
202+
"N_a_not_sampled = N_a - n_a\n",
223203
"\n",
224204
"not_sampled_sum_hat = (\n",
225205
" N_a_not_sampled * stratum_means[\"A\"]\n",

0 commit comments

Comments
 (0)