{
  "_id": "6a232bd2530b9bc726bcf66b",
  "Package": "KRLS",
  "Type": "Package",
  "Title": "Kernel-Based Regularized Least Squares",
  "Version": "1.7-0",
  "Date": "2026-06-04",
  "Authors@R": "c(\nperson(\"Jens\", \"Hainmueller\", email = \"jhain@stanford.edu\", role = c(\"aut\", \"cre\")),\nperson(\"Chad\", \"Hazlett\", role = \"aut\"))",
  "Description": "Implements Kernel-based Regularized Least Squares (KRLS),\na machine learning method to fit multidimensional functions y =\nf(x) for regression and classification problems without relying\non linearity or additivity assumptions. KRLS finds the best\nfitting function by minimizing the squared loss of a Tikhonov\nregularization problem, using Gaussian kernels as radial basis\nfunctions. For further details see Hainmueller and Hazlett\n(2014, <doi:10.1093/pan/mpt019>).",
  "License": "GPL (>= 2)",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://web.stanford.edu/~jhain/, https://github.com/j-hai/KRLS",
  "BugReports": "https://github.com/j-hai/KRLS/issues",
  "Encoding": "UTF-8",
  "Repository": "https://j-hai.r-universe.dev",
  "Date/Publication": "2026-06-05 15:34:11 UTC",
  "RemoteUrl": "https://github.com/j-hai/krls",
  "RemoteRef": "HEAD",
  "RemoteSha": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-05 19:54:04 UTC",
    "User": "root"
  },
  "Author": "Jens Hainmueller [aut, cre],\nChad Hazlett [aut]",
  "Maintainer": "Jens Hainmueller <jhain@stanford.edu>",
  "MD5sum": "5a7fa201a68566f127c09c146bb308ae",
  "_user": "j-hai",
  "_type": "src",
  "_file": "KRLS_1.7-0.tar.gz",
  "_fileid": "560cbe004ac63ccaa106aed740cf2b4feff83bfc37820db469b73b2d386de561",
  "_filesize": 416809,
  "_sha256": "560cbe004ac63ccaa106aed740cf2b4feff83bfc37820db469b73b2d386de561",
  "_created": "2026-06-05T19:54:04.000Z",
  "_published": "2026-06-05T20:04:34.119Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79802919820,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7445592764"
    },
    {
      "job": 79802919587,
      "time": 129,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445593624"
    },
    {
      "job": 79802919555,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7445734739"
    },
    {
      "job": 79802919573,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445588748"
    },
    {
      "job": 79802373935,
      "time": 207,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445554388"
    },
    {
      "job": 79802919547,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445585174"
    },
    {
      "job": 79802919592,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7445583410"
    },
    {
      "job": 79802919712,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7445580236"
    },
    {
      "job": 79802919644,
      "time": 92,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445583436"
    }
  ],
  "_buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/j-hai/krls",
  "_commit": {
    "id": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
    "author": "Jens Hainmueller <jhain@stanford.edu>",
    "committer": "Jens Hainmueller <jhain@stanford.edu>",
    "message": "record CRAN submission for 1.7-0\n\nCo-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>\n",
    "time": 1780673651
  },
  "_maintainer": {
    "name": "Jens Hainmueller",
    "email": "jhain@stanford.edu",
    "login": "j-hai",
    "description": "",
    "uuid": 115841204
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "lattice",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "generics",
      "role": "Suggests"
    }
  ],
  "_owner": "j-hai",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2026-18",
      "n": 6
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-20",
      "n": 11
    },
    {
      "week": "2026-23",
      "n": 6
    }
  ],
  "_tags": [
    {
      "name": "v1.1-0",
      "date": "2026-04-30"
    },
    {
      "name": "v1.2-0",
      "date": "2026-05-09"
    },
    {
      "name": "v1.4-0",
      "date": "2026-05-11"
    },
    {
      "name": "v1.4-1",
      "date": "2026-05-11"
    },
    {
      "name": "v1.5-0",
      "date": "2026-05-11"
    },
    {
      "name": "v1.5-1",
      "date": "2026-05-11"
    },
    {
      "name": "v1.5-2",
      "date": "2026-05-11"
    },
    {
      "name": "v1.6-0",
      "date": "2026-05-12"
    },
    {
      "name": "v1.6-1",
      "date": "2026-05-12"
    },
    {
      "name": "v1.7-0",
      "date": "2026-06-05"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "j-hai",
      "count": 24,
      "uuid": 115841204
    },
    {
      "user": "chadhazlett",
      "count": 1,
      "uuid": 5587656
    }
  ],
  "_userbio": {
    "uuid": 115841204,
    "type": "user",
    "name": "j-hai"
  },
  "_downloads": {
    "count": 589,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/KRLS"
  },
  "_mentions": 5,
  "_devurl": "https://github.com/j-hai/krls",
  "_searchresults": 100,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/KRLS.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/j-hai/krls",
  "_realowner": "j-hai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2011-09-30"
    },
    {
      "version": "0.2",
      "date": "2011-12-27"
    },
    {
      "version": "0.3-1",
      "date": "2013-08-07"
    },
    {
      "version": "0.3-2",
      "date": "2013-08-09"
    },
    {
      "version": "0.3-5",
      "date": "2013-12-20"
    },
    {
      "version": "0.3-7",
      "date": "2014-05-21"
    },
    {
      "version": "1.0-0",
      "date": "2017-07-10"
    },
    {
      "version": "1.1-0",
      "date": "2026-04-30"
    },
    {
      "version": "1.7-0",
      "date": "2026-06-05"
    }
  ],
  "_exports": [
    "b_maxvarK",
    "b_maxvarK_nystrom",
    "gausskernel",
    "get_landmarks",
    "krls",
    "looloss",
    "plot.krls",
    "predict.krls",
    "solveforc",
    "summary.krls"
  ],
  "_help": [
    {
      "page": "b_maxvarK",
      "title": "Gaussian kernel bandwidth by maximum off-diagonal var(K)",
      "topics": [
        "b_maxvarK",
        "b_maxvarK_nystrom"
      ]
    },
    {
      "page": "fdskrls",
      "title": "Compute first differences with KRLS",
      "topics": [
        "fdskrls"
      ]
    },
    {
      "page": "gausskernel",
      "title": "Gaussian Kernel Distance Computation",
      "topics": [
        "gausskernel"
      ]
    },
    {
      "page": "get_landmarks",
      "title": "Extract the landmark coordinates from a Nystrom KRLS fit",
      "topics": [
        "get_landmarks"
      ]
    },
    {
      "page": "krls",
      "title": "Kernel-based Regularized Least Squares (KRLS)",
      "topics": [
        "krls"
      ]
    },
    {
      "page": "lambdasearch",
      "title": "Leave-one-out optimization to find lambda",
      "topics": [
        "lambdasearch"
      ]
    },
    {
      "page": "looloss",
      "title": "Loss Function for Leave One Out Error",
      "topics": [
        "looloss"
      ]
    },
    {
      "page": "plot.krls",
      "title": "Plot method for Kernel-based Regularized Least Squares (KRLS) Model Fits",
      "topics": [
        "plot.krls"
      ]
    },
    {
      "page": "predict.krls",
      "title": "Predict method for Kernel-based Regularized Least Squares (KRLS) Model Fits",
      "topics": [
        "predict.krls"
      ]
    },
    {
      "page": "solveforc",
      "title": "Solve for Choice Coefficients in KRLS",
      "topics": [
        "solveforc"
      ]
    },
    {
      "page": "summary.krls",
      "title": "Summary method for Kernel-based Regularized Least Squares (KRLS) Model Fits",
      "topics": [
        "summary.krls"
      ]
    }
  ],
  "_readme": "https://github.com/j-hai/krls/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "krls-quickstart.Rmd",
      "filename": "krls-quickstart.html",
      "title": "Quickstart: kernel-regularized least squares with KRLS",
      "author": "Jens Hainmueller and Chad Hazlett",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why KRLS?",
        "A simulated example",
        "Fit",
        "Tidy output",
        "Visualize",
        "Augment for downstream analysis",
        "When KRLS is the right tool",
        "See also",
        "References"
      ],
      "created": "2026-05-09 23:32:59",
      "modified": "2026-05-11 19:22:06",
      "commits": 2
    },
    {
      "source": "krls-nystrom-scaling.Rmd",
      "filename": "krls-nystrom-scaling.html",
      "title": "Scaling KRLS to larger n: the Nystrom approximation",
      "author": "Jens Hainmueller and Chad Hazlett",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "A scaling comparison",
        "Scaling beyond what exact KRLS can do",
        "Reusing landmarks across fits",
        "Choosing the lambda criterion",
        "What carries over from the exact path",
        "Limitations"
      ],
      "created": "2026-05-11 15:27:16",
      "modified": "2026-05-12 16:26:57",
      "commits": 3
    }
  ],
  "_score": 7.079181246047625,
  "_indexed": true,
  "_nocasepkg": "krls",
  "_universes": [
    "j-hai"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7-0",
      "date": "2026-06-05T19:56:08.000Z",
      "distro": "noble",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "187ea89e4078bcc9ad35367560adb8653183894d37292bc5ba6c2450f8cdbd7e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.7-0",
      "date": "2026-06-05T19:56:10.000Z",
      "distro": "noble",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "af72b8061090423e2d4908cc8f96907260ab547e70def97ac21c8daddc3e473a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7-0",
      "date": "2026-06-05T20:03:55.000Z",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "ec3917a7090de4c130d42a98c988a0a828a71c36ee1d83f9c8c2cf301067f291",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.7-0",
      "date": "2026-06-05T19:55:56.000Z",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "8fc2df6274c7e6e1376c8dcd90537b4010ca7c850639acc6192842885c53c4ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7-0",
      "date": "2026-06-05T19:56:02.000Z",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "a1604ffe8157203d5ee50da4108d1b01207888cdd67254984734cc287120b52a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7-0",
      "date": "2026-06-05T19:55:29.000Z",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "dfefa5797f9510def4a127c76914a16375197de4b56daf47d2104e798af70b45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7-0",
      "date": "2026-06-05T19:55:13.000Z",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "6ab45d0067babb0175d78e4114eb85600c64c2bd6ebff1faaf5bc58cf86c47fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.7-0",
      "date": "2026-06-05T19:55:21.000Z",
      "commit": "bffb5c229fa1b81d9a26665511ef3aa8fce4abcc",
      "fileid": "09915e08a990f5aef0383702a2e4b4c6075c1f72e128eab0b59f801da56abda4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/27036678502"
    }
  ]
}