From 92ba771ce792f43f9ef292b4d5726e287eeff05c Mon Sep 17 00:00:00 2001 From: Ben Fifield Date: Mon, 5 Nov 2018 12:06:04 -0500 Subject: [PATCH] italics corrected --- README.Rmd | 2 +- README.md | 560 ++++++++++++++++++++++++++--------------------------- 2 files changed, 281 insertions(+), 281 deletions(-) diff --git a/README.Rmd b/README.Rmd index f11c4d1..bcd9bd7 100644 --- a/README.Rmd +++ b/README.Rmd @@ -252,7 +252,7 @@ fl_out_block2 <- fastLink( ) ``` -`blockData()` also implements other methods of blocking other than exact blocking. Analysts commonly use {\it window blocking} for numeric variables, where a given observation in dataset A will be compared to all observations in dataset B where the value of the blocking variable is within $\pm K$ of the value of the same variable in dataset A. The value of $K$ is the size of the window --- for instance, if we wanted to compare observations where birth year is within $\pm 1$ year, the window size is 1. Below, we block `dfA` and `dfB` on gender and birth year, using exact blocking on gender and window blocking with a window size of 1 on birth year: +`blockData()` also implements other methods of blocking other than exact blocking. Analysts commonly use *window blocking* for numeric variables, where a given observation in dataset A will be compared to all observations in dataset B where the value of the blocking variable is within $\pm K$ of the value of the same variable in dataset A. The value of $K$ is the size of the window --- for instance, if we wanted to compare observations where birth year is within $\pm 1$ year, the window size is 1. Below, we block `dfA` and `dfB` on gender and birth year, using exact blocking on gender and window blocking with a window size of 1 on birth year: ```{r} ## Exact block on gender, window block (+/- 1 year) on birth year diff --git a/README.md b/README.md index 0f69ce7..4de1736 100644 --- a/README.md +++ b/README.md @@ -172,71 +172,71 @@ matches.out$EM ``` ## $zeta.j - ## [,1] - ## [1,] 5.140243772082558e-104 - ## [2,] 1.207055866289496e-101 - ## [3,] 7.650188609975762e-87 - ## [4,] 4.899168963127878e-88 - ## [5,] 1.150445562329993e-85 - ## [6,] 7.291398669383124e-71 - ## [7,] 3.281425963247137e-90 - ## [8,] 7.705596532686194e-88 - ## [9,] 4.883723154308954e-73 - ## [10,] 3.254952564149871e-100 - ## [11,] 2.077894809415214e-86 - ## [12,] 1.420537067059675e-85 - ## [13,] 3.335770979167710e-83 - ## [14,] 1.353914603760525e-69 - ## [15,] 9.068416636038526e-72 - ## [16,] 2.046874885656473e-86 - ## [17,] 1.306682852239560e-72 - ## [18,] 1.944726887729658e-55 - ## [19,] 2.170320888599748e-76 - ## [20,] 3.230073295771142e-59 - ## [21,] 3.155027784483807e-100 - ## [22,] 7.408782471078426e-98 - ## [23,] 4.695605634912566e-83 - ## [24,] 2.014104884091221e-86 - ## [25,] 1.997855789027882e-96 - ## [26,] 1.332120227831835e-72 - ## [27,] 7.120669841437030e-86 - ## [28,] 6.786714060783790e-70 - ## [29,] 4.545689257055413e-72 - ## [30,] 4.023799438631091e-89 - ## [31,] 9.448872334714695e-87 - ## [32,] 5.988592370157348e-72 - ## [33,] 3.835085299000524e-73 - ## [34,] 2.568710849966839e-75 - ## [35,] 6.031965871139529e-73 - ## [36,] 3.822994269934483e-58 - ## [37,] 2.547987387588575e-85 - ## [38,] 1.626582772799451e-71 - ## [39,] 1.112001007429602e-70 - ## [40,] 7.098785852831457e-57 - ## [41,] 1.602300276221234e-71 - ## [42,] 1.698934206316614e-61 - ## [43,] 2.469765947097805e-85 - ## [44,] 1.576647813079722e-71 - ## [45,] 5.574083366680972e-71 - ## [46,] 3.558380242600910e-57 - ## [47,] 3.669623541092290e-88 - ## [48,] 8.617180076957280e-86 - ## [49,] 5.461474875848022e-71 - ## [50,] 3.497520070259037e-72 - ## [51,] 2.342612237280044e-74 - ## [52,] 5.501030629729718e-72 - ## [53,] 3.486493296789465e-57 - ## [54,] 1.014122382792083e-69 - ## [55,] 9.328417810382070e-57 - ## [56,] 1.549393565298416e-60 - ## [57,] 2.252376491096126e-84 - ## [58,] 2.872593168602245e-73 - ## [59,] 4.275260184913621e-56 - ## [60,] 2.737870015376239e-57 - ## [61,] 1.833804430928528e-59 - ## [62,] 1.763167597163696e-69 - ## [63,] 9.999999999999982e-01 - ## [64,] 9.999999999997602e-01 + ## [,1] + ## [1,] 8.419262663555981e-51 + ## [2,] 1.173389252413153e-44 + ## [3,] 2.646379720944128e-39 + ## [4,] 7.292362103666283e-44 + ## [5,] 1.016333574457344e-37 + ## [6,] 2.292167373808125e-32 + ## [7,] 4.884447551998586e-46 + ## [8,] 6.807434915054858e-40 + ## [9,] 1.535301066870949e-34 + ## [10,] 1.079286196570246e-42 + ## [11,] 6.261494659814906e-38 + ## [12,] 6.134545488083132e-38 + ## [13,] 8.549691382494763e-32 + ## [14,] 5.313449505995162e-31 + ## [15,] 3.558965540010417e-33 + ## [16,] 1.439847112134032e-42 + ## [17,] 8.353294086616594e-38 + ## [18,] 2.625644187298435e-26 + ## [19,] 1.387480211241783e-41 + ## [20,] 4.361188908068464e-30 + ## [21,] 1.930419723058928e-46 + ## [22,] 2.690418206678263e-40 + ## [23,] 6.067780294024032e-35 + ## [24,] 1.119935826618175e-41 + ## [25,] 2.474652999844177e-38 + ## [26,] 3.181298971380373e-37 + ## [27,] 1.707446874189434e-41 + ## [28,] 1.478908709341025e-34 + ## [29,] 9.905778021278484e-37 + ## [30,] 2.238814676230162e-43 + ## [31,] 3.120227012995646e-37 + ## [32,] 7.037140893315709e-32 + ## [33,] 1.939154051190646e-36 + ## [34,] 1.298851609895281e-38 + ## [35,] 1.810204266613223e-32 + ## [36,] 4.082607584891215e-27 + ## [37,] 2.869992151680382e-35 + ## [38,] 1.665030145717010e-30 + ## [39,] 1.631272359534779e-30 + ## [40,] 9.463850460044200e-26 + ## [41,] 3.828780470440601e-35 + ## [42,] 3.689528625057814e-34 + ## [43,] 5.133290384176191e-39 + ## [44,] 2.978085926600283e-34 + ## [45,] 4.540370426219810e-34 + ## [46,] 2.634102545525005e-29 + ## [47,] 3.394906490426527e-42 + ## [48,] 4.731467526316184e-36 + ## [49,] 1.067101960086819e-30 + ## [50,] 2.940505413073872e-35 + ## [51,] 1.969559967312416e-37 + ## [52,] 2.744967807729040e-31 + ## [53,] 6.190807633595693e-26 + ## [54,] 2.473638028120859e-29 + ## [55,] 3.368305924680413e-29 + ## [56,] 5.594748332146245e-33 + ## [57,] 7.784047973023133e-38 + ## [58,] 9.027591582450696e-35 + ## [59,] 2.837592345963584e-23 + ## [60,] 7.819267479111464e-28 + ## [61,] 5.237370464306236e-30 + ## [62,] 2.069901075532344e-30 + ## [63,] 9.999999999999982e-01 + ## [64,] 9.999999999997602e-01 ## ## $p.m ## [1] 0.0002857142857142756 @@ -246,25 +246,25 @@ matches.out$EM ## ## $p.gamma.k.m ## $p.gamma.k.m[[1]] - ## [1] 2.185959982758001e-73 1.095341050219602e-57 1.000000000000000e+00 + ## [1] 1.045899998017705e-32 5.738488046606488e-27 1.000000000000000e+00 ## ## $p.gamma.k.m[[2]] - ## [1] 2.982739663893358e-57 1.000000000000000e+00 + ## [1] 1.97971724297674e-24 1.00000000000000e+00 ## ## $p.gamma.k.m[[3]] - ## [1] 3.253165545599419e-73 8.048706314263162e-57 1.000000000000000e+00 + ## [1] 3.330463517437124e-32 1.715455616718354e-24 1.000000000000000e+00 ## ## $p.gamma.k.m[[4]] - ## [1] 4.395866354147246e-57 1.000000000000000e+00 + ## [1] 1.720608579049464e-24 1.000000000000000e+00 ## ## $p.gamma.k.m[[5]] - ## [1] 3.781263084876334e-71 8.189963046024995e-57 1.000000000000000e+00 + ## [1] 4.145053488044031e-32 1.721132582175325e-24 1.000000000000000e+00 ## ## $p.gamma.k.m[[6]] - ## [1] 4.4273484835967e-57 1.0000000000000e+00 + ## [1] 6.717885850595282e-27 1.000000000000000e+00 ## ## $p.gamma.k.m[[7]] - ## [1] 5.176152502532613e-57 1.000000000000000e+00 + ## [1] 1.233034196225684e-26 1.000000000000000e+00 ## ## ## $p.gamma.k.u @@ -291,138 +291,138 @@ matches.out$EM ## ## ## $p.gamma.j.m - ## [,1] - ## [1,] 7.669967064148554e-101 - ## [2,] 2.119453790635916e-100 - ## [3,] 2.726276511509150e-86 - ## [4,] 4.929365828827828e-87 - ## [5,] 1.362139237882084e-86 - ## [6,] 1.752134548085000e-72 - ## [7,] 4.929365828827828e-87 - ## [8,] 1.362139237882123e-86 - ## [9,] 1.752134548085050e-72 - ## [10,] 3.167889674752518e-100 - ## [11,] 2.035952303525970e-86 - ## [12,] 6.912703977480085e-86 - ## [13,] 1.910198117681300e-85 - ## [14,] 4.442684888526995e-72 - ## [15,] 4.442684888527121e-72 - ## [16,] 5.073725638680528e-87 - ## [17,] 3.260802762121879e-73 - ## [18,] 1.159046695335960e-58 - ## [19,] 3.260802762121971e-73 - ## [20,] 1.159046695335960e-58 - ## [21,] 5.498002440796680e-100 - ## [22,] 1.519271467088838e-99 - ## [23,] 1.954255447148770e-85 - ## [24,] 3.533478714029356e-86 - ## [25,] 2.270813553473508e-99 - ## [26,] 2.337415714456310e-72 - ## [27,] 4.136198140722506e-86 - ## [28,] 2.658268752083891e-72 - ## [29,] 2.658268752083891e-72 - ## [30,] 7.902285757169161e-87 - ## [31,] 2.183650772244828e-86 - ## [32,] 2.808853788656415e-72 - ## [33,] 5.078673357425520e-73 - ## [34,] 5.078673357425520e-73 - ## [35,] 1.403397616804769e-72 - ## [36,] 1.805205650581702e-58 - ## [37,] 3.263843149222056e-86 - ## [38,] 2.097620075271474e-72 - ## [39,] 7.122085626691424e-72 - ## [40,] 4.577251143919458e-58 - ## [41,] 5.227405739164018e-73 - ## [42,] 3.359570518170772e-59 - ## [43,] 5.664533630642381e-86 - ## [44,] 3.640505660793874e-72 - ## [45,] 4.261481096710478e-72 - ## [46,] 2.738786115068187e-58 - ## [47,] 6.607558891488454e-87 - ## [48,] 1.825876906939481e-86 - ## [49,] 2.348645366220768e-72 - ## [50,] 4.246572995589048e-73 - ## [51,] 4.246572995589169e-73 - ## [52,] 1.173462044548227e-72 - ## [53,] 1.509437017845745e-58 - ## [54,] 5.955188366339870e-72 - ## [55,] 2.809131526126177e-59 - ## [56,] 2.809131526126177e-59 - ## [57,] 4.736444708207517e-86 - ## [58,] 6.807697879425447e-73 - ## [59,] 2.419784422918906e-58 - ## [60,] 4.375199139599925e-59 - ## [61,] 4.375199139600049e-59 - ## [62,] 4.879908771999724e-72 - ## [63,] 4.999999999999961e-01 - ## [64,] 5.000000000000039e-01 + ## [,1] + ## [1,] 1.256399674811630e-47 + ## [2,] 2.060546975326111e-43 + ## [3,] 9.431785057462963e-39 + ## [4,] 7.338045922313829e-43 + ## [5,] 1.203469615056597e-38 + ## [6,] 5.508666809503376e-34 + ## [7,] 7.338171562281326e-43 + ## [8,] 1.203490220526336e-38 + ## [9,] 5.508761127353962e-34 + ## [10,] 1.050523991385343e-42 + ## [11,] 6.135726897759652e-38 + ## [12,] 2.985532184605382e-38 + ## [13,] 4.896395180657548e-34 + ## [14,] 1.743710438039141e-33 + ## [15,] 1.743740293360991e-33 + ## [16,] 3.569406544797919e-43 + ## [17,] 2.084759979358002e-38 + ## [18,] 1.565028104982090e-29 + ## [19,] 2.084833361073622e-38 + ## [20,] 1.565083192593362e-29 + ## [21,] 3.364320242426266e-46 + ## [22,] 5.517623124663102e-42 + ## [23,] 2.525593250873270e-37 + ## [24,] 1.964976561545296e-41 + ## [25,] 2.813037284415120e-41 + ## [26,] 5.582655917033155e-37 + ## [27,] 9.919085761919092e-42 + ## [28,] 5.793276477824970e-37 + ## [29,] 5.793375668682601e-37 + ## [30,] 4.397222945753068e-41 + ## [31,] 7.211625904045630e-37 + ## [32,] 3.300992710007279e-32 + ## [33,] 2.568213328408084e-36 + ## [34,] 2.568257300637548e-36 + ## [35,] 4.212047263925987e-32 + ## [36,] 1.927989263090582e-27 + ## [37,] 3.676686879655797e-36 + ## [38,] 2.147418504207121e-31 + ## [39,] 1.044894462377137e-31 + ## [40,] 6.102846875179852e-27 + ## [41,] 1.249242313267853e-36 + ## [42,] 7.296624853678739e-32 + ## [43,] 1.177464978974648e-39 + ## [44,] 6.877142837202175e-35 + ## [45,] 3.471541133576188e-35 + ## [46,] 2.027600367495960e-30 + ## [47,] 6.113514608419635e-41 + ## [48,] 1.002641459365209e-36 + ## [49,] 4.589411863778055e-32 + ## [50,] 3.570619432868422e-36 + ## [51,] 3.570680568014515e-36 + ## [52,] 5.856062518784984e-32 + ## [53,] 2.680507827369658e-27 + ## [54,] 1.452729970439422e-31 + ## [55,] 1.014423263900051e-31 + ## [56,] 1.014458970705730e-31 + ## [57,] 1.637044434332457e-39 + ## [58,] 2.139644513945760e-34 + ## [59,] 1.606229893201929e-25 + ## [60,] 1.249666807110153e-29 + ## [61,] 1.249688203555295e-29 + ## [62,] 5.729426307709991e-33 + ## [63,] 4.999957196066489e-01 + ## [64,] 5.000042803933511e-01 ## ## $p.gamma.j.u ## [,1] - ## [1,] 2.857221939649586e-01 - ## [2,] 3.362255975078642e-03 - ## [3,] 6.823888974051224e-04 - ## [4,] 1.926649993020625e-03 - ## [5,] 2.267198904301176e-05 - ## [6,] 4.601408613655581e-06 - ## [7,] 2.876488439579793e-01 - ## [8,] 3.384927964121654e-03 - ## [9,] 6.869903060187781e-04 - ## [10,] 1.863629504231385e-04 - ## [11,] 1.876196122601119e-04 - ## [12,] 9.318147521156777e-05 - ## [13,] 1.096519550858411e-06 - ## [14,] 6.283309184866345e-07 - ## [15,] 9.380980613005451e-05 - ## [16,] 4.746460537537378e-05 - ## [17,] 4.778466340218014e-05 - ## [18,] 1.141238743808879e-07 - ## [19,] 2.876966286213814e-01 - ## [20,] 6.871044298931587e-04 - ## [21,] 3.336844225881423e-04 - ## [22,] 3.926654867333284e-06 - ## [23,] 7.969368499218280e-07 - ## [24,] 3.359344861254866e-04 - ## [25,] 2.176464230545361e-07 - ## [26,] 3.359902920731962e-04 - ## [27,] 1.112281408627176e-04 - ## [28,] 7.500211791147510e-07 - ## [29,] 1.119781620418323e-04 - ## [30,] 3.760543332427121e-02 - ## [31,] 4.425245765313530e-04 - ## [32,] 8.981286971966362e-05 - ## [33,] 2.535767587611006e-04 - ## [34,] 3.785901008303230e-02 - ## [35,] 4.455085588410718e-04 - ## [36,] 9.041848583375434e-05 - ## [37,] 2.452822935802914e-05 - ## [38,] 2.469362537527814e-05 - ## [39,] 1.226411467901440e-05 - ## [40,] 1.234681268763889e-05 - ## [41,] 6.247071772539211e-06 - ## [42,] 3.786529927936164e-02 - ## [43,] 4.391799996651740e-05 - ## [44,] 4.421414291976428e-05 - ## [45,] 1.463933332217292e-05 - ## [46,] 1.473804763992188e-05 - ## [47,] 3.447892543334091e-03 - ## [48,] 4.057331754450934e-05 - ## [49,] 8.234584644501390e-06 - ## [50,] 2.324944398741802e-05 - ## [51,] 3.471141987321509e-03 - ## [52,] 4.084690700873392e-05 - ## [53,] 8.290111176156823e-06 - ## [54,] 1.124447874001126e-06 - ## [55,] 5.766313856959685e-07 - ## [56,] 3.471718618707204e-03 - ## [57,] 4.026666660026763e-06 - ## [58,] 4.537956654620387e-04 - ## [59,] 1.083797934996405e-06 - ## [60,] 3.059984258004306e-06 - ## [61,] 4.568556497200431e-04 - ## [62,] 5.299712371005844e-07 - ## [63,] 1.541307791353627e-19 - ## [64,] 2.301172532490969e-17 + ## [1,] 2.857222021425374e-01 + ## [2,] 3.362254983728925e-03 + ## [3,] 6.823889211463050e-04 + ## [4,] 1.926648248471532e-03 + ## [5,] 2.267196118026699e-05 + ## [6,] 4.601404475550817e-06 + ## [7,] 2.876488503910090e-01 + ## [8,] 3.384926944909193e-03 + ## [9,] 6.869903256218560e-04 + ## [10,] 1.863629534853647e-04 + ## [11,] 1.876196141691340e-04 + ## [12,] 9.318147878207447e-05 + ## [13,] 1.096519238186349e-06 + ## [14,] 6.283303556365234e-07 + ## [15,] 9.380980913771111e-05 + ## [16,] 4.746460468440405e-05 + ## [17,] 4.778466240758362e-05 + ## [18,] 1.141238727097045e-07 + ## [19,] 2.876966350534165e-01 + ## [20,] 6.871044494945657e-04 + ## [21,] 3.336843317846764e-04 + ## [22,] 3.926652528652952e-06 + ## [23,] 7.969366379738929e-07 + ## [24,] 3.359343926079321e-04 + ## [25,] 2.176463611748304e-07 + ## [26,] 3.359901985376971e-04 + ## [27,] 1.112281407071491e-04 + ## [28,] 7.500204774680678e-07 + ## [29,] 1.119781611846171e-04 + ## [30,] 3.760543117422202e-02 + ## [31,] 4.425244080882689e-04 + ## [32,] 8.981286513890621e-05 + ## [33,] 2.535765073961155e-04 + ## [34,] 3.785900768161813e-02 + ## [35,] 4.455083864748133e-04 + ## [36,] 9.041848065640018e-05 + ## [37,] 2.452822765667481e-05 + ## [38,] 2.469362350795442e-05 + ## [39,] 1.226411409675275e-05 + ## [40,] 1.234681202420250e-05 + ## [41,] 6.247071145631768e-06 + ## [42,] 3.786529687727697e-02 + ## [43,] 4.391798424745776e-05 + ## [44,] 4.421412681808147e-05 + ## [45,] 1.463933204572155e-05 + ## [46,] 1.473804626265387e-05 + ## [47,] 3.447889746981670e-03 + ## [48,] 4.057327151410437e-05 + ## [49,] 8.234578016798621e-06 + ## [50,] 2.324940341398909e-05 + ## [51,] 3.471139150395658e-03 + ## [52,] 4.084686041238120e-05 + ## [53,] 8.290104451895364e-06 + ## [54,] 1.124446972941322e-06 + ## [55,] 5.766308895235820e-07 + ## [56,] 3.471715781285182e-03 + ## [57,] 4.026662183272914e-06 + ## [58,] 4.537952584858708e-04 + ## [59,] 1.083796969704861e-06 + ## [60,] 3.059978655387542e-06 + ## [61,] 4.568552371412581e-04 + ## [62,] 5.299706024223191e-07 + ## [63,] 1.541304880963882e-19 + ## [64,] 2.301170322413746e-17 ## ## $patterns.w ## gamma.1 gamma.2 gamma.3 gamma.4 gamma.5 gamma.6 gamma.7 counts @@ -490,74 +490,74 @@ matches.out$EM ## 8 0 0 0 0 1 2 2 1 ## 58 2 2 2 2 2 2 2 43 ## 64 2 NA 2 2 2 2 2 7 - ## weights p.gamma.j.m p.gamma.j.u - ## 1 -229.27104678114122 7.669967064148554e-101 2.857221939649586e-01 - ## 43 -223.81220778068851 2.119453790635916e-100 3.362255975078642e-03 - ## 52 -189.72947040262679 2.726276511509150e-86 6.823888974051224e-04 - ## 19 -192.47772020668282 4.929365828827828e-87 1.926649993020625e-03 - ## 48 -187.01888120623013 1.362139237882084e-86 2.267198904301176e-05 - ## 57 -152.93614382816844 1.752134548085000e-72 4.601408613655581e-06 - ## 25 -197.48367791122797 4.929365828827828e-87 2.876488439579793e-01 - ## 49 -192.02483891077526 1.362139237882123e-86 3.384927964121654e-03 - ## 59 -157.94210153271356 1.752134548085050e-72 6.869903060187781e-04 - ## 13 -220.51762921165422 3.167889674752518e-100 1.863629504231385e-04 - ## 39 -188.73026034174097 2.035952303525970e-86 1.876196122601119e-04 - ## 16 -186.80799550272536 6.912703977480085e-86 9.318147521156777e-05 - ## 47 -181.34915650227265 1.910198117681300e-85 1.096519550858411e-06 - ## 24 -150.01466892826699 4.442684888526995e-72 6.283309184866345e-07 - ## 41 -155.02062663281208 4.442684888527121e-72 9.380980613005451e-05 - ## 11 -188.74530142808709 5.073725638680528e-87 4.746460537537378e-05 - ## 33 -156.95793255817384 3.260802762121879e-73 4.778466340218014e-05 - ## 62 -117.41635617965943 1.159046695335960e-58 1.141238743808879e-07 - ## 35 -165.66088965057492 3.260802762121971e-73 2.876966286213814e-01 - ## 63 -126.11931327206052 1.159046695335960e-58 6.871044298931587e-04 - ## 5 -220.54880961153583 5.498002440796680e-100 3.336844225881423e-04 - ## 46 -215.08997061108312 1.519271467088838e-99 3.926654867333284e-06 - ## 56 -181.00723323302142 1.954255447148770e-85 7.969368499218280e-07 - ## 29 -188.76144074162258 3.533478714029356e-86 3.359344861254866e-04 - ## 15 -211.79539204204883 2.270813553473508e-99 2.176464230545361e-07 - ## 38 -156.93865248096952 2.337415714456310e-72 3.359902920731962e-04 - ## 9 -187.49861381221382 4.136198140722506e-86 1.112281408627176e-04 - ## 23 -150.70528723775541 2.658268752083891e-72 7.500211791147510e-07 - ## 31 -155.71124494230057 2.658268752083891e-72 1.119781620418323e-04 - ## 3 -194.97714430078736 7.902285757169161e-87 3.760543332427121e-02 - ## 45 -189.51830530033465 2.183650772244828e-86 4.425245765313530e-04 - ## 54 -155.43556792227295 2.808853788656415e-72 8.981286971966362e-05 - ## 21 -158.18381772632895 5.078673357425520e-73 2.535767587611006e-04 - ## 27 -163.18977543087411 5.078673357425520e-73 3.785901008303230e-02 - ## 51 -157.73093643042139 1.403397616804769e-72 4.455085588410718e-04 - ## 61 -123.64819905235970 1.805205650581702e-58 9.041848583375434e-05 - ## 14 -186.22372673130036 3.263843149222056e-86 2.452822935802914e-05 - ## 40 -154.43635786138711 2.097620075271474e-72 2.469362537527814e-05 - ## 18 -152.51409302237147 7.122085626691424e-72 1.226411467901440e-05 - ## 42 -120.72672415245823 4.577251143919458e-58 1.234681268763889e-05 - ## 12 -154.45139894773322 5.227405739164018e-73 6.247071772539211e-06 - ## 37 -131.36698717022105 3.359570518170772e-59 3.786529927936164e-02 - ## 7 -186.25490713118197 5.664533630642381e-86 4.391799996651740e-05 - ## 30 -154.46753826126869 3.640505660793874e-72 4.421414291976428e-05 - ## 10 -153.20471133185995 4.261481096710478e-72 1.463933332217292e-05 - ## 32 -121.41734246194672 2.738786115068187e-58 1.473804763992188e-05 - ## 2 -192.76669671860816 6.607558891488454e-87 3.447892543334091e-03 - ## 44 -187.30785771815545 1.825876906939481e-86 4.057331754450934e-05 - ## 53 -153.22512034009375 2.348645366220768e-72 8.234584644501390e-06 - ## 20 -155.97337014414978 4.246572995589048e-73 2.324944398741802e-05 - ## 26 -160.97932784869488 4.246572995589169e-73 3.471141987321509e-03 - ## 50 -155.52048884824219 1.173462044548227e-72 4.084690700873392e-05 - ## 60 -121.43775147018050 1.509437017845745e-58 8.290111176156823e-06 - ## 17 -150.30364544019227 5.955188366339870e-72 1.124447874001126e-06 - ## 34 -120.45358249564076 2.809131526126177e-59 5.766313856959685e-07 - ## 36 -129.15653958804185 2.809131526126177e-59 3.471718618707204e-03 - ## 6 -184.04445954900274 4.736444708207517e-86 4.026666660026763e-06 - ## 4 -158.47279423825427 6.807697879425447e-73 4.537956654620387e-04 - ## 55 -118.93121785973989 2.419784422918906e-58 1.083797934996405e-06 - ## 22 -121.67946766379590 4.375199139599925e-59 3.059984258004306e-06 - ## 28 -126.68542536834103 4.375199139600049e-59 4.568556497200431e-04 - ## 8 -149.75055706864887 4.879908771999724e-72 5.299712371005844e-07 - ## 58 42.62333831511587 4.999999999999961e-01 1.541307791353627e-19 - ## 64 37.61738061057073 5.000000000000039e-01 2.301172532490969e-17 + ## weights p.gamma.j.m p.gamma.j.u + ## 1 -106.74051387948300 1.256399674811630e-47 2.857222021425374e-01 + ## 43 -92.59304412518260 2.060546975326111e-43 3.362254983728925e-03 + ## 52 -80.26682245539131 9.431785057462963e-39 6.823889211463050e-04 + ## 19 -90.76611297005071 7.338045922313829e-43 1.926648248471532e-03 + ## 48 -76.61864321575030 1.203469615056597e-38 2.267196118026699e-05 + ## 57 -64.29242154595902 5.508666809503376e-34 4.601404475550817e-06 + ## 25 -95.77205448087018 7.338171562281326e-43 2.876488503910090e-01 + ## 49 -81.62458472656978 1.203490220526336e-38 3.384926944909193e-03 + ## 59 -69.29836305677848 5.508761127353962e-34 6.869903256218560e-04 + ## 13 -88.07147040378285 1.050523991385343e-42 1.863629534853647e-04 + ## 39 -77.10301100517003 6.135726897759652e-38 1.876196141691340e-04 + ## 16 -77.12349393498485 2.985532184605382e-38 9.318147878207447e-05 + ## 47 -62.97602418068444 4.896395180657548e-34 1.096519238186349e-06 + ## 24 -61.14909302555255 1.743710438039141e-33 6.283303556365234e-07 + ## 41 -66.15503453637201 1.743740293360991e-33 9.380980913771111e-05 + ## 11 -87.78323336148534 3.569406544797919e-43 4.746460468440405e-05 + ## 33 -76.81477396287252 2.084759979358002e-38 4.778466240758362e-05 + ## 62 -50.34108253878082 1.565028104982090e-29 1.141238727097045e-07 + ## 35 -85.51769589994474 2.084833361073622e-38 2.876966350534165e-01 + ## 63 -59.04400447585304 1.565083192593362e-29 6.871044494945657e-04 + ## 5 -96.70037321692315 3.364320242426266e-46 3.336843317846764e-04 + ## 46 -82.55290346262274 5.517623124663102e-42 3.926652528652952e-06 + ## 56 -70.22668179283144 2.525593250873270e-37 7.969366379738929e-07 + ## 29 -85.73191381831032 1.964976561545296e-41 3.359343926079321e-04 + ## 15 -78.03132974122300 2.813037284415120e-41 2.176463611748304e-07 + ## 38 -75.47755523738486 5.582655917033155e-37 3.359901985376971e-04 + ## 9 -85.31018600554725 9.919085761919092e-42 1.112281407071491e-04 + ## 23 -69.33578509611496 5.793276477824970e-37 7.500204774680678e-07 + ## 31 -74.34172660693443 5.793375668682601e-37 1.119781611846171e-04 + ## 3 -89.64440882688763 4.397222945753068e-41 3.760543117422202e-02 + ## 45 -75.49693907258722 7.211625904045630e-37 4.425244080882689e-04 + ## 54 -63.17071740279593 3.300992710007279e-32 8.981286513890621e-05 + ## 21 -73.67000791745534 2.568213328408084e-36 2.535765073961155e-04 + ## 27 -78.67594942827481 2.568257300637548e-36 3.785900768161813e-02 + ## 51 -64.52847967397440 4.212047263925987e-32 4.455083864748133e-04 + ## 61 -52.20225800418311 1.927989263090582e-27 9.041848065640018e-05 + ## 14 -70.97536535118748 3.676686879655797e-36 2.452822765667481e-05 + ## 40 -60.00690595257466 2.147418504207121e-31 2.469362350795442e-05 + ## 18 -60.02738888238947 1.044894462377137e-31 1.226411409675275e-05 + ## 42 -49.05892948377664 6.102846875179852e-27 1.234681202420250e-05 + ## 12 -70.68712830888997 1.249242313267853e-36 6.247071145631768e-06 + ## 37 -68.42159084734936 7.296624853678739e-32 3.786529687727697e-02 + ## 7 -79.60426816432776 1.177464978974648e-39 4.391798424745776e-05 + ## 30 -68.63580876571494 6.877142837202175e-35 4.421412681808147e-05 + ## 10 -68.21408095295187 3.471541133576188e-35 1.463933204572155e-05 + ## 32 -57.24562155433905 2.027600367495960e-30 1.473804626265387e-05 + ## 2 -86.92549407999672 6.113514608419635e-41 3.447889746981670e-03 + ## 44 -72.77802432569632 1.002641459365209e-36 4.057327151410437e-05 + ## 53 -60.45180265590503 4.589411863778055e-32 8.234578016798621e-06 + ## 20 -70.95109317056443 3.570619432868422e-36 2.324940341398909e-05 + ## 26 -75.95703468138390 3.570680568014515e-36 3.471139150395658e-03 + ## 50 -61.80956492708349 5.856062518784984e-32 4.084686041238120e-05 + ## 60 -49.48334325729219 2.680507827369658e-27 8.290104451895364e-06 + ## 17 -57.30847413549856 1.452729970439422e-31 1.124446972941322e-06 + ## 34 -56.99975416338624 1.014423263900051e-31 5.766308895235820e-07 + ## 36 -65.70267610045846 1.014458970705730e-31 3.471715781285182e-03 + ## 6 -76.88535341743686 1.637044434332457e-39 4.026662183272914e-06 + ## 4 -69.82938902740135 2.139644513945760e-34 4.537952584858708e-04 + ## 55 -43.35569760330964 1.606229893201929e-25 1.083796969704861e-06 + ## 22 -53.85498811796905 1.249666807110153e-29 3.059978655387542e-06 + ## 28 -58.86092962878852 1.249688203555295e-29 4.568552371412581e-04 + ## 8 -59.78924836484148 5.729426307709991e-33 5.299706024223191e-07 + ## 58 42.62333164255424 4.999957196066489e-01 1.541304880963882e-19 + ## 64 37.61739013173478 5.000042803933511e-01 2.301170322413746e-17 ## ## $iter.converge - ## [1] 4 + ## [1] 3 ## ## $nobs.a ## [1] 500 @@ -713,7 +713,7 @@ fl_out_block2 <- fastLink( ## Deduping the estimated matches. ## Getting the match patterns for each estimated match. -`blockData()` also implements other methods of blocking other than exact blocking. Analysts commonly use {} for numeric variables, where a given observation in dataset A will be compared to all observations in dataset B where the value of the blocking variable is within ±*K* of the value of the same variable in dataset A. The value of *K* is the size of the window --- for instance, if we wanted to compare observations where birth year is within ±1 year, the window size is 1. Below, we block `dfA` and `dfB` on gender and birth year, using exact blocking on gender and window blocking with a window size of 1 on birth year: +`blockData()` also implements other methods of blocking other than exact blocking. Analysts commonly use *window blocking* for numeric variables, where a given observation in dataset A will be compared to all observations in dataset B where the value of the blocking variable is within ±*K* of the value of the same variable in dataset A. The value of *K* is the size of the window --- for instance, if we wanted to compare observations where birth year is within ±1 year, the window size is 1. Below, we block `dfA` and `dfB` on gender and birth year, using exact blocking on gender and window blocking with a window size of 1 on birth year: ``` r ## Exact block on gender, window block (+/- 1 year) on birth year @@ -915,11 +915,11 @@ summary(agg.out) ## 95% 85% 75% Exact ## 1 Match Count All 50 50 50 50 - ## 2 Within-State 26 26 26 26 - ## 3 Across-State 24 24 24 24 - ## 4 Match Rate All 27.027% 27.027% 27.027% 27.027% - ## 5 Within-State 14.054% 14.054% 14.054% 14.054% - ## 6 Across-State 12.973% 12.973% 12.973% 12.973% + ## 2 Within-State 20 20 20 20 + ## 3 Across-State 30 30 30 30 + ## 4 Match Rate All 29.94% 29.94% 29.94% 29.94% + ## 5 Within-State 11.976% 11.976% 11.976% 11.976% + ## 6 Across-State 17.964% 17.964% 17.964% 17.964% ## 7 FDR All 0% 0% 0% ## 8 Within-State 0% 0% 0% ## 9 Across-State 0% 0% 0% @@ -995,8 +995,8 @@ summary(fs.out) ``` ## 95% 85% 75% Exact - ## 1 Match Count 78 78 78 43 - ## 2 Match Rate 22.286% 22.286% 22.286% 12.286% + ## 1 Match Count 50 50 50 43 + ## 2 Match Rate 14.286% 14.286% 14.286% 12.286% ## 3 FDR 0% 0% 0% ## 4 FNR 0% 0% 0% @@ -1051,9 +1051,9 @@ names(table(dfA_dedupe$dedupe.ids)[table(dfA_dedupe$dedupe.ids) > 1]) dfA_dedupe[dfA_dedupe$dedupe.ids == 501,] ``` - ## firstname middlename lastname housenum streetname city - ## 289 bruce the davis 2650 granger ave Castro Valley - ## 2891 bruce the davis 2650 granger ave Castro Valley + ## firstname middlename lastname housenum streetname city + ## 374 alejandro white 3127 e juana ave Pleasanton + ## 3741 alejandro white 3127 e juana ave Pleasanton ## birthyear gender dedupe.ids - ## 289 1989 F 501 - ## 2891 1989 F 501 + ## 374 1993 M 501 + ## 3741 1993 M 501