{
  "_id": "6ad73e22d556c3a3418a708c",
  "Package": "KRLS",
  "Type": "Package",
  "Title": "Kernel-Based Regularized Least Squares",
  "Version": "1.7-1",
  "Date": "2026-07-05",
  "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-07-05 17:15:07 UTC",
  "RemoteUrl": "https://github.com/j-hai/krls",
  "RemoteRef": "HEAD",
  "RemoteSha": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-20 10:05:55 UTC",
    "User": "root"
  },
  "Author": "Jens Hainmueller [aut, cre],\nChad Hazlett [aut]",
  "Maintainer": "Jens Hainmueller <jhain@stanford.edu>",
  "_user": "j-hai",
  "_type": "src",
  "_file": "KRLS_1.7-1.tar.gz",
  "_fileid": "https://r2.ropensci.org/ee21a29cf2ffcdbbaffc806513cf549fb94f186725c94bd3ddaf2fcbbbb78078",
  "_filesize": 416738,
  "_sha256": "ee21a29cf2ffcdbbaffc806513cf549fb94f186725c94bd3ddaf2fcbbbb78078",
  "_expires": "2027-01-28T10:10:40.000Z",
  "_created": "2026-10-20T10:05:55.000Z",
  "_published": "2026-10-20T10:10:42.682Z",
  "_upstream": "https://github.com/j-hai/krls",
  "_status": "success",
  "_maintainer": {
    "name": "Jens Hainmueller",
    "email": "jhain@stanford.edu",
    "login": "j-hai",
    "description": "",
    "uuid": 115841204
  },
  "_jobs": [
    {
      "job": 118570359675,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12257850104"
    },
    {
      "job": 118570359994,
      "time": 157,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12257550704"
    },
    {
      "job": 118570359745,
      "time": 246,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12257426003"
    },
    {
      "job": 118570359781,
      "time": 153,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12256935920"
    },
    {
      "job": 118569096973,
      "time": 186,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12257130384"
    },
    {
      "job": 118570359615,
      "time": 87,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12257645063"
    },
    {
      "job": 118570359816,
      "time": 75,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12255464872"
    },
    {
      "job": 118570359659,
      "time": 90,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12257280579"
    },
    {
      "job": 118570359643,
      "time": 111,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12257830072"
    }
  ],
  "_buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753",
  "_commit": {
    "id": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
    "author": "Jens Hainmueller <jhain@stanford.edu>",
    "committer": "Jens Hainmueller <jhain@stanford.edu>",
    "message": "cran-comments: record completed win-builder R-release/R-devel (both OK)\n\nCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>\n",
    "time": 1783271707
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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
    },
    {
      "week": "2026-27",
      "n": 2
    }
  ],
  "_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": 27,
      "uuid": 115841204
    },
    {
      "user": "chadhazlett",
      "count": 1,
      "uuid": 5587656
    }
  ],
  "_userbio": {
    "uuid": 115841204,
    "type": "user",
    "name": "j-hai",
    "followers": 2
  },
  "_downloads": {
    "count": 468,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/KRLS"
  },
  "_mentions": 5,
  "_devurl": "https://github.com/j-hai/krls",
  "_searchresults": 98,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/KRLS.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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"
    },
    {
      "version": "1.7-1",
      "date": "2026-07-06"
    }
  ],
  "_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.1673173347481764,
  "_indexed": true,
  "_nocasepkg": "krls",
  "_universes": [
    "j-hai"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7-1",
      "date": "2026-10-20T10:08:22.000Z",
      "distro": "resolute",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/7b5d734280882672394b0c1a97dd60737a88e04704155db2f29d60bcf88ef291",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.7-1",
      "date": "2026-10-20T10:08:27.000Z",
      "distro": "resolute",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/c9b158a7b8976c1bfd10eb19f091c488adc524b49ca7de6df52ec1e5b4cf8259",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7-1",
      "date": "2026-10-20T10:09:05.000Z",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/2687005ae36bad6814ef9dd41ab50fd88f880a8497bbb0a55c6bcb9243dfdc28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.7-1",
      "date": "2026-10-20T10:08:00.000Z",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/5e0acaddafc5109d344cf046210a27eac3a0ca9eda94270131ff670d390c82f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7-1",
      "date": "2026-10-20T10:07:37.000Z",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/86c07bf7a35d6b7feee913c63568dd32812043c3072bab9d23fb538ea614976a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7-1",
      "date": "2026-10-20T10:06:59.000Z",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/dc44948ed4d41bec90176287e934871c99e90e8929c671f5c68c768e3270ad9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7-1",
      "date": "2026-10-20T10:07:06.000Z",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/a8cbd82902f01a35a7f2c1b634b26746fc14ebd926e33016b25c03398e0e0e14",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.7-1",
      "date": "2026-10-20T10:07:26.000Z",
      "commit": "4a2f765d09330d0de58a9e064eea62de4b5792ac",
      "fileid": "https://r2.ropensci.org/dd3274b115a348d2f666df2392cad74071b68d45c734d5f9aae09c967624e46d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/39405098753"
    }
  ]
}