Git Product home page Git Product logo

Comments (2)

tedenamorado avatar tedenamorado commented on August 18, 2024 3

Hi @msghankinson,

I would suggest playing with the cut.a option from fastLink. The option allows you to move the threshold for the agreement in the string-valued variables. In the code below, I moved it to 0.92. Note by default it is set at 0.94. Why do you want to lower the threshold? To capture nicknames. However, I would not recommend lowering it too much as you will start finding a lot of false positives for names that are similar e.g., Anna and Annabelle.

fl_out <- fastLink(
  dfA = test_pool, 
  dfB = test_key,
  varnames = c("first_name"),
  cut.a = 0.92,
  stringdist.match = c("first_name"),
  dedupe.matches = F)

matches_out <- getMatches(
  dfA = test_pool, 
  dfB = test_key,
  fl.out = fl_out)

Note that I changed the order in which the datasets were entered in the functions i.e., test_pool first and test_key second. The function matches_out is written using dfA as the target. Alternatively, you can call the matches by just typing:

test_pool[fl_out$matches$inds.a, ]
test_key[fl_out$matches$inds.b, ]

I hope this helps! If anything, let us know.

All my best,

Ted

from fastlink.

msghankinson avatar msghankinson commented on August 18, 2024

This worked perfectly! Thank you so much for the quick response and detailed feedback. - Michael

from fastlink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.