{
  "_id": "6a1e9dba1d7bb097a0a6f4c5",
  "Package": "countSTAR",
  "Type": "Package",
  "Title": "Flexible Modeling of Count Data",
  "Version": "1.2.0",
  "Authors@R": "c(\nperson(given=\"Brian\", family=\"King\", email = \"brianking387@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(given=\"Dan\", family = \"Kowal\", email = \"daniel.r.kowal@gmail.com\", role = \"aut\"))",
  "Description": "For Bayesian and classical inference and prediction with\ncount-valued data, Simultaneous Transformation and Rounding\n(STAR) Models provide a flexible, interpretable, and\neasy-to-use approach. STAR models the observed count data using\na rounded continuous data model and incorporates a\ntransformation for greater flexibility. Implicitly, STAR\nformalizes the commonly-applied yet incoherent procedure of (i)\ntransforming count-valued data and subsequently (ii) modeling\nthe transformed data using Gaussian models. STAR is\nwell-defined for count-valued data, which is reflected in\npredictive accuracy, and is designed to account for\nzero-inflation, bounded or censored data, and over- or\nunderdispersion. Importantly, STAR is easy to combine with\nexisting MCMC or point estimation methods for continuous data,\nwhich allows seamless adaptation of continuous data models\n(such as linear regressions, additive models, BART, random\nforests, and gradient boosting machines) for count-valued data.\nThe package also includes several methods for modeling count\ntime series data, namely via warped Dynamic Linear Models. For\nmore details and background on these methodologies, see the\nworks of Kowal and Canale (2020) <doi:10.1214/20-EJS1707>,\nKowal and Wu (2022) <doi:10.1111/biom.13617>, King and Kowal\n(2023) <doi:10.1214/23-BA1394>, and Kowal and Wu (2023)\n<doi:10.48550/arXiv.2110.12316>.",
  "License": "GPL (>=2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://bking124.github.io/countSTAR/\nhttps://github.com/bking124/countSTAR",
  "BugReports": "https://github.com/bking124/countSTAR/issues",
  "LazyData": "true",
  "Repository": "https://bking124.r-universe.dev",
  "Date/Publication": "2026-04-03 20:09:07 UTC",
  "RemoteUrl": "https://github.com/bking124/countstar",
  "RemoteRef": "HEAD",
  "RemoteSha": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-02 09:03:45 UTC",
    "User": "root"
  },
  "Author": "Brian King [aut, cre],\nDan Kowal [aut]",
  "Maintainer": "Brian King <brianking387@gmail.com>",
  "MD5sum": "fc8182254ba6534c531a665ad7d14475",
  "_user": "bking124",
  "_type": "src",
  "_file": "countSTAR_1.2.0.tar.gz",
  "_fileid": "729ad5b3a2272ea765bdc7881baa3f4bd2e8bc6ff5e59658cb30ef741e898d3f",
  "_filesize": 911916,
  "_sha256": "729ad5b3a2272ea765bdc7881baa3f4bd2e8bc6ff5e59658cb30ef741e898d3f",
  "_created": "2026-06-02T09:03:45.000Z",
  "_published": "2026-06-02T09:09:14.272Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79036407400,
      "time": 155,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7353501974"
    },
    {
      "job": 79036407481,
      "time": 148,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7353499102"
    },
    {
      "job": 79036407529,
      "time": 198,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353517504"
    },
    {
      "job": 79036407431,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353498799"
    },
    {
      "job": 79036407450,
      "time": 209,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7353507902"
    },
    {
      "job": 79036407458,
      "time": 247,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7353527420"
    },
    {
      "job": 79036407452,
      "time": 209,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353507048"
    },
    {
      "job": 79036407493,
      "time": 279,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353540011"
    },
    {
      "job": 79035625577,
      "time": 265,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353445345"
    },
    {
      "job": 79036407552,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353495610"
    },
    {
      "job": 79036407444,
      "time": 140,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7353496419"
    },
    {
      "job": 79036407397,
      "time": 122,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7353490668"
    },
    {
      "job": 79036407386,
      "time": 145,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353498017"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/bking124/countstar",
  "_commit": {
    "id": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
    "author": "drkowal <daniel.r.kowal@gmail.com>",
    "committer": "drkowal <daniel.r.kowal@gmail.com>",
    "message": "updated pkgdown files\n",
    "time": 1775246947
  },
  "_maintainer": {
    "name": "Brian King",
    "email": "brianking387@gmail.com",
    "login": "bking124",
    "linkedin": "in/brianking387",
    "twitter": "@brian_el_rey",
    "description": "ML Research Engineer",
    "uuid": 18384932
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "bayesplot",
      "role": "Suggests"
    },
    {
      "package": "coda",
      "role": "Suggests"
    },
    {
      "package": "dbarts",
      "role": "Suggests"
    },
    {
      "package": "FastGP",
      "role": "Suggests"
    },
    {
      "package": "gbm",
      "role": "Suggests"
    },
    {
      "package": "KFAS",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spikeSlabGAM",
      "role": "Suggests"
    },
    {
      "package": "splines2",
      "role": "Suggests"
    },
    {
      "package": "TruncatedNormal",
      "role": "Suggests"
    },
    {
      "package": "truncdist",
      "role": "Suggests"
    }
  ],
  "_owner": "bking124",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 4
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "bking124",
      "count": 109,
      "uuid": 18384932
    },
    {
      "user": "drkowal",
      "count": 39,
      "uuid": 28745421
    }
  ],
  "_userbio": {
    "uuid": 18384932,
    "type": "user",
    "name": "Brian King",
    "description": "ML Research Engineer"
  },
  "_downloads": {
    "count": 210,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/countSTAR"
  },
  "_devurl": "https://github.com/bking124/countstar",
  "_pkgdown": "https://bking124.github.io/countSTAR/",
  "_searchresults": 3,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/countSTAR.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bking124/countstar",
  "_realowner": "bking124",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2023-04-10"
    },
    {
      "version": "1.0.2",
      "date": "2023-06-30"
    },
    {
      "version": "1.2.0",
      "date": "2026-04-03"
    }
  ],
  "_exports": [
    "a_j",
    "bam_star",
    "bart_star",
    "blm_star",
    "credBands",
    "ergMean",
    "g_bc",
    "g_cdf",
    "g_inv",
    "g_inv_approx",
    "g_inv_bc",
    "gbm_star",
    "genEM_star",
    "genMCMC_star",
    "getEffSize",
    "HPDregion",
    "init_lm_gprior",
    "lm_star",
    "plot_coef",
    "plot_fitted",
    "plot_pmf",
    "pvals",
    "randomForest_star",
    "rdir",
    "round_floor",
    "sample_lm_gprior",
    "simBaS",
    "simulate_nb_friedman",
    "simulate_nb_lm",
    "spline_star",
    "warpDLM"
  ],
  "_datasets": [
    {
      "name": "roaches",
      "title": "Data on the efficacy of a pest management system at reducing the number of roaches in urban apartments.",
      "object": "roaches",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "roach1",
        "treatment",
        "senior",
        "exposure2"
      ],
      "rows": 262,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "a_j",
      "title": "Inverse rounding function",
      "topics": [
        "a_j"
      ]
    },
    {
      "page": "bam_star",
      "title": "Fit Bayesian Additive STAR Model with MCMC",
      "topics": [
        "bam_star"
      ]
    },
    {
      "page": "bart_star",
      "title": "MCMC Algorithm for BART-STAR",
      "topics": [
        "bart_star"
      ]
    },
    {
      "page": "blm_star",
      "title": "STAR Bayesian Linear Regression",
      "topics": [
        "blm_star"
      ]
    },
    {
      "page": "confint.lmstar",
      "title": "Compute asymptotic confidence intervals for STAR linear regression",
      "topics": [
        "confint.lmstar"
      ]
    },
    {
      "page": "credBands",
      "title": "Compute Simultaneous Credible Bands",
      "topics": [
        "credBands"
      ]
    },
    {
      "page": "ergMean",
      "title": "Compute the ergodic (running) mean.",
      "topics": [
        "ergMean"
      ]
    },
    {
      "page": "g_bc",
      "title": "Box-Cox transformation",
      "topics": [
        "g_bc"
      ]
    },
    {
      "page": "g_cdf",
      "title": "Cumulative distribution function (CDF)-based transformation",
      "topics": [
        "g_cdf"
      ]
    },
    {
      "page": "g_inv",
      "title": "Inverse transformation",
      "topics": [
        "g_inv"
      ]
    },
    {
      "page": "g_inv_approx",
      "title": "Approximate inverse transformation",
      "topics": [
        "g_inv_approx"
      ]
    },
    {
      "page": "g_inv_bc",
      "title": "Inverse Box-Cox transformation",
      "topics": [
        "g_inv_bc"
      ]
    },
    {
      "page": "gbm_star",
      "title": "Fitting STAR Gradient Boosting Machines via EM algorithm",
      "topics": [
        "gbm_star"
      ]
    },
    {
      "page": "genEM_star",
      "title": "Generalized EM estimation for STAR",
      "topics": [
        "genEM_star"
      ]
    },
    {
      "page": "genMCMC_star",
      "title": "Generalized MCMC Algorithm for STAR",
      "topics": [
        "genMCMC_star"
      ]
    },
    {
      "page": "getEffSize",
      "title": "Summarize of effective sample size",
      "topics": [
        "getEffSize"
      ]
    },
    {
      "page": "HPDregion",
      "title": "Compute highest posterior density (HPD) regions",
      "topics": [
        "HPDregion"
      ]
    },
    {
      "page": "init_lm_gprior",
      "title": "Initialize linear regression parameters assuming a g-prior",
      "topics": [
        "init_lm_gprior"
      ]
    },
    {
      "page": "lm_star",
      "title": "Fitting frequentist STAR linear model via EM algorithm",
      "topics": [
        "lm_star"
      ]
    },
    {
      "page": "plot_coef",
      "title": "Plot the estimated regression coefficients and credible intervals",
      "topics": [
        "plot_coef"
      ]
    },
    {
      "page": "plot_fitted",
      "title": "Plot the fitted values and the data",
      "topics": [
        "plot_fitted"
      ]
    },
    {
      "page": "plot_pmf",
      "title": "Plot the empirical and model-based probability mass functions",
      "topics": [
        "plot_pmf"
      ]
    },
    {
      "page": "predict.lmstar",
      "title": "Predict method for response in STAR linear model",
      "topics": [
        "predict.lmstar"
      ]
    },
    {
      "page": "pvals",
      "title": "Compute coefficient p-values for STAR linear regression using likelihood ratio test",
      "topics": [
        "pvals"
      ]
    },
    {
      "page": "randomForest_star",
      "title": "Fit Random Forest STAR with EM algorithm",
      "topics": [
        "randomForest_star"
      ]
    },
    {
      "page": "rdir",
      "title": "Dirichlet sampler",
      "topics": [
        "rdir"
      ]
    },
    {
      "page": "roaches",
      "title": "Data on the efficacy of a pest management system at reducing the number of roaches in urban apartments.",
      "topics": [
        "roaches"
      ]
    },
    {
      "page": "round_floor",
      "title": "Rounding function",
      "topics": [
        "round_floor"
      ]
    },
    {
      "page": "sample_lm_gprior",
      "title": "Sample the linear regression parameters assuming a g-prior",
      "topics": [
        "sample_lm_gprior"
      ]
    },
    {
      "page": "simBaS",
      "title": "Compute Simultaneous Band Scores (SimBaS)",
      "topics": [
        "simBaS"
      ]
    },
    {
      "page": "simulate_nb_friedman",
      "title": "Simulate count data from Friedman's nonlinear regression",
      "topics": [
        "simulate_nb_friedman"
      ]
    },
    {
      "page": "simulate_nb_lm",
      "title": "Simulate count data from a linear regression",
      "topics": [
        "simulate_nb_lm"
      ]
    },
    {
      "page": "spline_star",
      "title": "Posterior and predictive inference for Bayesian STAR splines",
      "topics": [
        "spline_star"
      ]
    },
    {
      "page": "warpDLM",
      "title": "Posterior Inference for warpDLM model with latent structural DLM",
      "topics": [
        "warpDLM"
      ]
    }
  ],
  "_readme": "https://github.com/bking124/countstar/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp",
    "RcppArmadillo"
  ],
  "_sysdeps": [
    {
      "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": "countSTAR.Rmd",
      "filename": "countSTAR.html",
      "title": "Getting Started with countSTAR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "STAR Model Overview",
        "The Rounding Operator",
        "The Transformation Function",
        "Count-Valued Data: The Roaches Dataset",
        "Frequentist inference for STAR models",
        "The STAR Linear Model",
        "STAR Machine Learning Models",
        "Bayesian inference for STAR models",
        "Bayesian STAR Linear Model",
        "BART STAR",
        "Other Bayesian Models",
        "Count Time Series Modeling: warpDLM",
        "References"
      ],
      "created": "2023-03-28 20:31:30",
      "modified": "2026-04-03 19:54:43",
      "commits": 11
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "countstar",
  "_universes": [
    "bking124"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-02T09:06:15.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "d4c71ba3779fa04a75dda068f1911e6726f5bd25ca43028067d3fa3a7c11183b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-02T09:06:04.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "055013ae00c5bf658266af40676ab9f484d3edb77dd572d853606a3021ba61d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-02T09:07:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "a26bbb0108aad901eadec26aeb3819aac6a0ad071703c33078abe6aaafa3da80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-02T09:06:13.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "4766622a2b2525fd08fa028bc8b7bcdb1065398fdaa98fb159f5394dbb7e6161",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-06-02T09:06:40.000Z",
      "arch": "aarch64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "cb44c041e43ec6507bf0236dfaa197ed14c74be6cbc058234969b0db9a341640",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-06-02T09:07:14.000Z",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "bb0dcf3a55755b775e3e7bb474fff6c211b446aa8fd457d289c2813a6f473a1a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-06-02T09:06:28.000Z",
      "arch": "aarch64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "8467a2ca4dbe0c1eca9e43f03c5abbf075af985edff114194d532d6309637abe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-06-02T09:07:48.000Z",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "fe5d3d1760598442be1267a07d4479ae149d27d76b819e593230cbde37806d1f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-06-02T09:06:26.000Z",
      "arch": "emscripten",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "43393a7ccfe00190279a539d4331b5424c77f22c1b67235304883bd21f8900ae",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-06-02T09:05:31.000Z",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "ae6c97d8a9020247698eaa8e77a4b2581d56432b89bfcf2c20adaab426b74c19",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-06-02T09:05:15.000Z",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "95830bbbba1311f1bf3e39f21d23e0a5682a492f2a1c781c69475b71a4378024",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-06-02T09:05:21.000Z",
      "arch": "x86_64",
      "commit": "bf68c18ebe68b79431a8180906b19a7b6b16a7dc",
      "fileid": "f3cfaba2ee0e6ec9c049109625ee86381ed2d566ff39ae8c9c0cd47e2182383a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bking124/actions/runs/26809535691"
    }
  ]
}