{
  "_id": "6a252b784b233be19839467c",
  "Package": "cpr",
  "Title": "Control Polygon Reduction",
  "Version": "0.4.1",
  "Authors@R": "c(person(\"Peter\", \"DeWitt\", email = \"dewittpe@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-6391-0795\")),\nperson(\"Samantha\", \"MaWhinney\", email = \"sam.mawhinney@ucdenver.edu\", role = c(\"ths\")),\nperson(\"Nichole\", \"Carlson\", email = \"nichole.carlson@ucdenver.edu\", role = c(\"ths\")))",
  "Description": "Implementation of the Control Polygon Reduction and\nControl Net Reduction methods for finding parsimonious B-spline\nregression models.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "URL": "https://github.com/dewittpe/cpr/, http://www.peteredewitt.com/cpr/",
  "BugReports": "https://github.com/dewittpe/cpr/issues",
  "Language": "en-us",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-07 08:22:26 UTC",
    "User": "root"
  },
  "Author": "Peter DeWitt [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6391-0795>), Samantha MaWhinney\n[ths], Nichole Carlson [ths]",
  "Maintainer": "Peter DeWitt <dewittpe@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-01-08 04:00:08 UTC",
  "RemoteUrl": "https://github.com/cran/cpr",
  "RemoteRef": "HEAD",
  "RemoteSha": "61747942fdccfc6f94eecbdcc00c73baa912b655",
  "MD5sum": "c966543eab6fec8521bb491a17fe2edd",
  "_user": "cran",
  "_type": "src",
  "_file": "cpr_0.4.1.tar.gz",
  "_fileid": "25c1edc054f7d5fdc80e7e63ef4b8c6c67d888fa5ac99857b2418ee942268576",
  "_filesize": 2928114,
  "_sha256": "25c1edc054f7d5fdc80e7e63ef4b8c6c67d888fa5ac99857b2418ee942268576",
  "_created": "2026-06-07T08:22:26.000Z",
  "_published": "2026-06-07T08:27:36.536Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79944083345,
      "time": 239,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462346333"
    },
    {
      "job": 79944083358,
      "time": 248,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462347107"
    },
    {
      "job": 79944083355,
      "time": 218,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462343878"
    },
    {
      "job": 79944083341,
      "time": 233,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462345393"
    },
    {
      "job": 79943708552,
      "time": 382,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462315219"
    },
    {
      "job": 79944083330,
      "time": 188,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462339590"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27087057894",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/cpr",
  "_commit": {
    "id": "61747942fdccfc6f94eecbdcc00c73baa912b655",
    "author": "Peter DeWitt <dewittpe@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.1\n",
    "time": 1767844808
  },
  "_maintainer": {
    "name": "Peter DeWitt",
    "email": "dewittpe@gmail.com",
    "login": "dewittpe",
    "orcid": "0000-0002-6391-0795",
    "description": "Ph.D. Biostatistician, R Enthusiast.",
    "uuid": 3136617
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "version": ">= 1.1.35.1",
      "role": "Imports"
    },
    {
      "package": "plot3D",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.11",
      "role": "Imports"
    },
    {
      "package": "rgl",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.6-4",
      "role": "Suggests"
    },
    {
      "package": "geepack",
      "role": "Suggests"
    },
    {
      "package": "ggpubr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "qwraps2",
      "version": ">= 0.6.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-02",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.4.1",
      "date": "2026-01-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "dewittpe",
      "count": 4,
      "uuid": 3136617
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 220,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cpr"
  },
  "_mentions": 2,
  "_devurl": "https://github.com/dewittpe/cpr",
  "_pkgdown": "http://www.peteredewitt.com/cpr/",
  "_searchresults": 69,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cpr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dewittpe/cpr",
  "_realowner": "dewittpe",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.2.3",
      "date": "2017-03-07"
    },
    {
      "version": "0.3.0",
      "date": "2023-11-29"
    },
    {
      "version": "0.4.0",
      "date": "2024-02-15"
    },
    {
      "version": "0.4.1",
      "date": "2026-01-08"
    }
  ],
  "_exports": [
    "bsplineD",
    "bsplines",
    "btensor",
    "build_tensor",
    "cn",
    "cnr",
    "coarsen_ordinate",
    "cp",
    "cp_diff",
    "cp_value",
    "cpr",
    "d_order_statistic",
    "get_spline",
    "get_surface",
    "hat_ordinate",
    "influence_of",
    "influence_of_iknots",
    "influence_weights",
    "insert_a_knot",
    "insertion_matrix",
    "matrix_rank",
    "p_order_statistic",
    "refine_ordinate",
    "sign_changes",
    "trimmed_quantile",
    "update_bsplines",
    "update_btensor",
    "wiegh_iknots",
    "wiggle"
  ],
  "_datasets": [
    {
      "name": "spdg",
      "title": "Simulated Pregnanediol glucuronide (PDG) Data",
      "object": "spdg",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "age",
        "ttm",
        "ethnicity",
        "bmi",
        "day_from_dlt",
        "day_of_cycle",
        "day",
        "pdg"
      ],
      "rows": 24628,
      "table": true,
      "tojson": true
    },
    {
      "name": "us_covid_cases",
      "title": "United States Laboratory Confirmed COVID-19 Cases",
      "object": "us_covid_cases",
      "class": [
        "data.frame"
      ],
      "fields": [
        "date",
        "cases"
      ],
      "rows": 1227,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bsplineD",
      "title": "B-spline Derivatives",
      "topics": [
        "bsplineD"
      ]
    },
    {
      "page": "bsplines",
      "title": "B-Splines",
      "topics": [
        "bsplines"
      ]
    },
    {
      "page": "btensor",
      "title": "btensor",
      "topics": [
        "btensor"
      ]
    },
    {
      "page": "build_tensor",
      "title": "Build Tensor",
      "topics": [
        "build_tensor"
      ]
    },
    {
      "page": "cn",
      "title": "Control Nets",
      "topics": [
        "cn",
        "cn.cpr_bt",
        "cn.formula"
      ]
    },
    {
      "page": "cnr",
      "title": "Control Net Reduction",
      "topics": [
        "cnr"
      ]
    },
    {
      "page": "coef_vcov",
      "title": "Extract Regression Coefficients for B-Splines and Tensor Products of B-splines",
      "topics": [
        "coef_vcov"
      ]
    },
    {
      "page": "cp",
      "title": "Control Polygons",
      "topics": [
        "cp",
        "cp.cpr_bs",
        "cp.formula"
      ]
    },
    {
      "page": "cp_diff",
      "title": "Vertical Difference between two Control Polygons",
      "topics": [
        "cp_diff"
      ]
    },
    {
      "page": "cp_value",
      "title": "Control Polygon Value",
      "topics": [
        "cp_value"
      ]
    },
    {
      "page": "cpr",
      "title": "Control Polygon Reduction",
      "topics": [
        "cpr"
      ]
    },
    {
      "page": "cpr-defunct",
      "title": "Defunct Functions",
      "topics": [
        "coarsen_ordinate",
        "cpr-defunct",
        "hat_ordinate",
        "influence_of",
        "influence_weights",
        "insertion_matrix",
        "refine_ordinate",
        "wiegh_iknots"
      ]
    },
    {
      "page": "generate_cp_formula_data",
      "title": "Generate Control Polygon Formula and Data",
      "topics": [
        "generate_cp_formula_data"
      ]
    },
    {
      "page": "get_spline",
      "title": "Get the Control Polygon and the Spline Function",
      "topics": [
        "get_spline"
      ]
    },
    {
      "page": "get_surface",
      "title": "Get Surface",
      "topics": [
        "get_surface"
      ]
    },
    {
      "page": "iknots_or_df",
      "title": "Internal Knots or Degrees of Freedom",
      "topics": [
        "iknots_or_df"
      ]
    },
    {
      "page": "influence_of_iknots",
      "title": "Determine the influence of the internal knots of a control polygon",
      "topics": [
        "influence_of_iknots",
        "influence_of_iknots.cpr_cn"
      ]
    },
    {
      "page": "insert_a_knot",
      "title": "Insert a Knot into a Control Polygon",
      "topics": [
        "insert_a_knot"
      ]
    },
    {
      "page": "knot_expr",
      "title": "Knot Expressions",
      "topics": [
        "knot_expr"
      ]
    },
    {
      "page": "loglikelihood",
      "title": "Determine the (quasi) Log Likelihood for a regression object.",
      "topics": [
        "loglikelihood"
      ]
    },
    {
      "page": "matrix_rank",
      "title": "Rank of a Matrix",
      "topics": [
        "matrix_rank"
      ]
    },
    {
      "page": "newknots",
      "title": "New Knots for CPs and CNs in CPR and CNR",
      "topics": [
        "newknots"
      ]
    },
    {
      "page": "order_statistics",
      "title": "Distribution of Order Statistics",
      "topics": [
        "d_order_statistic",
        "order_statistics",
        "p_order_statistic"
      ]
    },
    {
      "page": "plot.cpr_bs",
      "title": "Plot B-spline Basis",
      "topics": [
        "plot.cpr_bs"
      ]
    },
    {
      "page": "plot.cpr_cn",
      "title": "Plotting Control Nets",
      "topics": [
        "plot.cpr_cn"
      ]
    },
    {
      "page": "plot.cpr_cnr",
      "title": "Control Net Reduction Plots",
      "topics": [
        "plot.cpr_cnr"
      ]
    },
    {
      "page": "plot.cpr_cp",
      "title": "Plotting Control Polygons",
      "topics": [
        "plot.cpr_cp"
      ]
    },
    {
      "page": "plot.cpr_cpr",
      "title": "Control Polygon Reduction Plots",
      "topics": [
        "plot.cpr_cpr"
      ]
    },
    {
      "page": "plot.cpr_summary_cpr_cpr",
      "title": "Plotting Summaries of Control Polygon Reductions",
      "topics": [
        "plot.cpr_summary_cpr_cpr"
      ]
    },
    {
      "page": "predict.cpr_cp",
      "title": "Model Prediction",
      "topics": [
        "predict.cpr_cp"
      ]
    },
    {
      "page": "print.cpr_bs",
      "title": "Print bsplines",
      "topics": [
        "print.cpr_bs"
      ]
    },
    {
      "page": "sign_changes",
      "title": "Sign Changes",
      "topics": [
        "sign_changes"
      ]
    },
    {
      "page": "spdg",
      "title": "Simulated Pregnanediol glucuronide (PDG) Data",
      "topics": [
        "spdg"
      ]
    },
    {
      "page": "summary.cpr_cn",
      "title": "Summary of Control Net",
      "topics": [
        "summary.cpr_cn"
      ]
    },
    {
      "page": "summary.cpr_cnr",
      "title": "Summarize Control Net Reduction Objects",
      "topics": [
        "summary.cpr_cnr"
      ]
    },
    {
      "page": "summary.cpr_cp",
      "title": "Summarize a Control Polygon Object",
      "topics": [
        "summary.cpr_cp"
      ]
    },
    {
      "page": "summary.cpr_cpr",
      "title": "Summarize a Control Polygon Reduction Object",
      "topics": [
        "summary.cpr_cpr"
      ]
    },
    {
      "page": "trimmed_quantile",
      "title": "Trimmed Quantiles",
      "topics": [
        "trimmed_quantile"
      ]
    },
    {
      "page": "update_bsplines",
      "title": "Update bsplines or btensor calls",
      "topics": [
        "update_bsplines",
        "update_btensor"
      ]
    },
    {
      "page": "us_covid_cases",
      "title": "United States Laboratory Confirmed COVID-19 Cases",
      "topics": [
        "us_covid_cases"
      ]
    },
    {
      "page": "wiggle",
      "title": "Wiggliness of a Spline function",
      "topics": [
        "wiggle"
      ]
    }
  ],
  "_readme": "https://github.com/cran/cpr/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "boot",
    "bslib",
    "cachem",
    "cli",
    "cpp11",
    "digest",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "minqa",
    "misc3d",
    "nlme",
    "nloptr",
    "plot3D",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rgl",
    "rlang",
    "rmarkdown",
    "S7",
    "sass",
    "scales",
    "tinytex",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "cpr.Rmd",
      "filename": "cpr.html",
      "title": "Control Polygon Reduction",
      "author": "Peter E. DeWitt",
      "engine": "knitr::rmarkdown",
      "headings": [
        "B-splines and Control Polygons",
        "B-splines",
        "cpr::bsplines vs splines::bs",
        "Input Arguments",
        "Attributes of the returned matrices",
        "Right Continuity",
        "Control Polygons",
        "Knot Influence",
        "Spline Spaces and Inserting a Knot",
        "Assessing influence of $\\xi_j$",
        "Fitting B-splines to noisy data",
        "Control Polygon Reduction",
        "Example with known knots",
        "Example when knots are unknown",
        "Extensions to higher dimensions",
        "References",
        "Session Info"
      ],
      "created": "2024-02-16 02:30:46",
      "modified": "2026-01-08 04:00:08",
      "commits": 2
    },
    {
      "source": "cnr.Rmd",
      "filename": "cnr.html",
      "title": "Tensor Products of B-Splines, Control Nets, and Control Net Reduction",
      "author": "Peter E. DeWitt",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Tensor Products of B-Splines",
        "Control Nets",
        "Control Net Reduction",
        "References",
        "Session Info"
      ],
      "created": "2024-02-16 02:30:46",
      "modified": "2026-01-08 04:00:08",
      "commits": 2
    }
  ],
  "_score": 4.6170003411208995,
  "_indexed": false,
  "_nocasepkg": "cpr",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://dewittpe.r-universe.dev/cpr",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-06-07T08:25:23.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "61747942fdccfc6f94eecbdcc00c73baa912b655",
      "fileid": "848f87300629eeec930b231df25d45c08f52135748cc7d4b3f7e8698e2f9e18e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27087057894"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-06-07T08:25:14.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "61747942fdccfc6f94eecbdcc00c73baa912b655",
      "fileid": "9c01ac8b3451acc206f030988932e5a56c9e1bc7046a538b05dc781ac987b634",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27087057894"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-06-07T08:25:07.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "61747942fdccfc6f94eecbdcc00c73baa912b655",
      "fileid": "bd31e4aecd3502975288ab77d51a54c89c0dfe470fdf8346f8d36ae6e9a5535a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27087057894"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-06-07T08:25:20.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "61747942fdccfc6f94eecbdcc00c73baa912b655",
      "fileid": "11c86f2e0c923f8603db828d4e264eaf3b509d408f2f64962260a4b61a371674",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27087057894"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.1",
      "date": "2026-06-07T08:25:59.000Z",
      "arch": "emscripten",
      "commit": "61747942fdccfc6f94eecbdcc00c73baa912b655",
      "fileid": "bfc8b687f31c0d87d7bc9407026b57ee279230bb55ad38ad31f224d776b50219",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27087057894"
    }
  ]
}