File tree Expand file tree Collapse file tree 1 file changed +34
-15
lines changed Expand file tree Collapse file tree 1 file changed +34
-15
lines changed Original file line number Diff line number Diff line change 168
168
" p2=0,\n " ,
169
169
" n_points=5,\n " ,
170
170
" ),\n " ,
171
- " )\n " ,
172
- " \n " ,
171
+ " )"
172
+ ]
173
+ },
174
+ {
175
+ "cell_type" : " markdown" ,
176
+ "id" : " 6" ,
177
+ "metadata" : {},
178
+ "source" : [
179
+ " Looking at the `(\" einnahmen\" , \" bruttolohn_m\" )` column, we see that the secondary\n " ,
180
+ " earner's earnings are varied between 1,000 and 3,000 Euro per month in steps of 500\n " ,
181
+ " Euro, while the primary earner's earnings are fixed at 4,000 Euro per month and the\n " ,
182
+ " child's earnings are 0:"
183
+ ]
184
+ },
185
+ {
186
+ "cell_type" : " code" ,
187
+ "execution_count" : null ,
188
+ "id" : " 7" ,
189
+ "metadata" : {},
190
+ "outputs" : [],
191
+ "source" : [
173
192
" persona_with_varying_income_of_secondary_earner.input_data_tree[\" einnahmen\" ][\n " ,
174
193
" \" bruttolohn_m\"\n " ,
175
194
" ]"
178
197
{
179
198
"cell_type" : " code" ,
180
199
"execution_count" : null ,
181
- "id" : " 6 " ,
200
+ "id" : " 8 " ,
182
201
"metadata" : {},
183
202
"outputs" : [],
184
203
"source" : [
199
218
},
200
219
{
201
220
"cell_type" : " markdown" ,
202
- "id" : " 7 " ,
221
+ "id" : " 9 " ,
203
222
"metadata" : {},
204
223
"source" : [
205
224
" If you want to vary anything else than `bruttolohn_m`, use the upserting mechanism\n " ,
215
234
{
216
235
"cell_type" : " code" ,
217
236
"execution_count" : null ,
218
- "id" : " 8 " ,
237
+ "id" : " 10 " ,
219
238
"metadata" : {},
220
239
"outputs" : [],
221
240
"source" : [
227
246
},
228
247
{
229
248
"cell_type" : " markdown" ,
230
- "id" : " 9 " ,
249
+ "id" : " 11 " ,
231
250
"metadata" : {},
232
251
"source" : [
233
252
" ### Advanced Usage: Upserting Input Data\n " ,
251
270
{
252
271
"cell_type" : " code" ,
253
272
"execution_count" : null ,
254
- "id" : " 10 " ,
273
+ "id" : " 12 " ,
255
274
"metadata" : {},
256
275
"outputs" : [],
257
276
"source" : [
264
283
},
265
284
{
266
285
"cell_type" : " markdown" ,
267
- "id" : " 11 " ,
286
+ "id" : " 13 " ,
268
287
"metadata" : {},
269
288
"source" : [
270
289
" Next, define the input data to upsert:\n "
273
292
{
274
293
"cell_type" : " code" ,
275
294
"execution_count" : null ,
276
- "id" : " 12 " ,
295
+ "id" : " 14 " ,
277
296
"metadata" : {},
278
297
"outputs" : [],
279
298
"source" : [
284
303
},
285
304
{
286
305
"cell_type" : " markdown" ,
287
- "id" : " 13 " ,
306
+ "id" : " 15 " ,
288
307
"metadata" : {},
289
308
"source" : [
290
309
" Alternatively, you can generate a range of rent levels using `numpy.linspace`:"
293
312
{
294
313
"cell_type" : " code" ,
295
314
"execution_count" : null ,
296
- "id" : " 14 " ,
315
+ "id" : " 16 " ,
297
316
"metadata" : {},
298
317
"outputs" : [],
299
318
"source" : [
310
329
},
311
330
{
312
331
"cell_type" : " markdown" ,
313
- "id" : " 15 " ,
332
+ "id" : " 17 " ,
314
333
"metadata" : {},
315
334
"source" : [
316
335
" > **The order of input data matters!** GETTSIM uses pointers to `p_id`s in the input\n " ,
328
347
{
329
348
"cell_type" : " code" ,
330
349
"execution_count" : null ,
331
- "id" : " 16 " ,
350
+ "id" : " 18 " ,
332
351
"metadata" : {},
333
352
"outputs" : [],
334
353
"source" : [
339
358
},
340
359
{
341
360
"cell_type" : " markdown" ,
342
- "id" : " 17 " ,
361
+ "id" : " 19 " ,
343
362
"metadata" : {},
344
363
"source" : [
345
364
" The new persona can then be used to compute taxes and transfers:"
348
367
{
349
368
"cell_type" : " code" ,
350
369
"execution_count" : null ,
351
- "id" : " 18 " ,
370
+ "id" : " 20 " ,
352
371
"metadata" : {},
353
372
"outputs" : [],
354
373
"source" : [
You can’t perform that action at this time.
0 commit comments