{
  "_id": "6a3259993efcd9bda43816e6",
  "Package": "Countr",
  "Type": "Package",
  "Title": "Flexible Univariate Count Models Based on Renewal Processes",
  "Version": "3.6.1",
  "Authors@R": "c( person(given = \"Tarak\", family = \"Kharrat\",\nrole = c(\"aut\"),\nemail = \"tarak@realanalytics.co.uk\",\ncomment = c(ORCID = \"0000-0001-9399-6174\")),\nperson(given = c(\"Georgi\", \"N.\"), family = \"Boshnakov\",\nrole = c(\"aut\", \"cre\"),\nemail = \"georgi.boshnakov@manchester.ac.uk\",\ncomment = c(ORCID = \"0000-0003-2839-346X\")) )",
  "Description": "Flexible univariate count models based on renewal\nprocesses. The models may include covariates and can be\nspecified with familiar formula syntax as in glm() and package\n'flexsurv'.  The methodology is described by Kharrat et all\n(2019) <doi:10.18637/jss.v090.i13> (included as vignette\n'Countr_guide' in the package).",
  "License": "GPL (>= 2)",
  "URL": "https://geobosh.github.io/Countr/ (doc),\nhttps://CRAN.R-project.org/package=Countr",
  "BugReports": "https://github.com/GeoBosh/Countr/issues",
  "RdMacros": "Rdpack",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "yes",
  "Collate": "'Countr-package.R' 'RcppExports.R' 'anc.R' 'coefnames.R'\n'convCount_loglik.R' 'convCount_moments.R' 'convCount_probs.R'\n'dBivariateWeibull.R' 'dWeibull.R' 'dWeibullgamma.R' 'data.R'\n'renewal_IV.R' 'renewal_tools.R' 'renewal_cstr.R' 'tools.R'\n'renewal_methods.R'",
  "Config/build/clean-inst-doc": "FALSE",
  "Packaged": {
    "Date": "2026-06-17 08:18:08 UTC",
    "User": "root"
  },
  "Author": "Tarak Kharrat [aut] (ORCID:\n<https://orcid.org/0000-0001-9399-6174>), Georgi N. Boshnakov\n[aut, cre] (ORCID: <https://orcid.org/0000-0003-2839-346X>)",
  "Maintainer": "Georgi N. Boshnakov <georgi.boshnakov@manchester.ac.uk>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-01-18 15:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/Countr",
  "RemoteRef": "HEAD",
  "RemoteSha": "2c8f2384982075ee545cb28f24fd95fdd8166635",
  "MD5sum": "587b3864de8cc667128f5a9af9c146ae",
  "_user": "cran",
  "_type": "src",
  "_file": "Countr_3.6.1.tar.gz",
  "_fileid": "1ea258b756cb2a2a75d877fab95135908f939e7ab7f049a048d5c18533057695",
  "_filesize": 4300613,
  "_sha256": "1ea258b756cb2a2a75d877fab95135908f939e7ab7f049a048d5c18533057695",
  "_created": "2026-06-17T08:18:08.000Z",
  "_published": "2026-06-17T08:23:53.885Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81849952776,
      "time": 232,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7689833285"
    },
    {
      "job": 81849952800,
      "time": 228,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7689830771"
    },
    {
      "job": 81849952722,
      "time": 241,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7689836058"
    },
    {
      "job": 81849952706,
      "time": 210,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7689824104"
    },
    {
      "job": 81848668283,
      "time": 434,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7689747545"
    },
    {
      "job": 81849952654,
      "time": 197,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7689819489"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27675166198",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/Countr",
  "_commit": {
    "id": "2c8f2384982075ee545cb28f24fd95fdd8166635",
    "author": "Georgi N. Boshnakov <georgi.boshnakov@manchester.ac.uk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 3.6.1\n",
    "time": 1768750802
  },
  "_maintainer": {
    "name": "Georgi N. Boshnakov",
    "email": "georgi.boshnakov@manchester.ac.uk",
    "orcid": "0000-0003-2839-346X"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.3",
      "role": "Imports"
    },
    {
      "package": "flexsurv",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "VGAM",
      "version": ">= 1.1-1",
      "role": "Imports"
    },
    {
      "package": "optimx",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "version": ">= 0.7-0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "standardize",
      "role": "Imports"
    },
    {
      "package": "pscl",
      "role": "Imports"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "role": "Suggests"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    },
    {
      "package": "lattice",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "3.6",
      "date": "2025-12-06"
    },
    {
      "name": "3.6.1",
      "date": "2026-01-18"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "tkharrat",
      "count": 4,
      "uuid": 28568279
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 609,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 538,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/Countr"
  },
  "_devurl": "https://github.com/geobosh/countr",
  "_pkgdown": "https://geobosh.github.io/Countr/",
  "_searchresults": 86,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/Countr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/geobosh/countr",
  "_realowner": "geobosh",
  "_cranurl": false,
  "_releases": [
    {
      "version": "3.2.0",
      "date": "2016-03-23"
    },
    {
      "version": "3.2.6",
      "date": "2016-09-14"
    },
    {
      "version": "3.2.7",
      "date": "2016-10-07"
    },
    {
      "version": "3.2.8",
      "date": "2016-12-20"
    },
    {
      "version": "3.4.1",
      "date": "2017-11-20"
    },
    {
      "version": "3.5.2",
      "date": "2018-10-04"
    },
    {
      "version": "3.5.4",
      "date": "2019-08-21"
    },
    {
      "version": "3.5.5",
      "date": "2021-03-03"
    },
    {
      "version": "3.5.6",
      "date": "2022-11-13"
    },
    {
      "version": "3.5.7",
      "date": "2023-11-28"
    },
    {
      "version": "3.5.8",
      "date": "2024-01-14"
    },
    {
      "version": "3.6",
      "date": "2025-12-11"
    },
    {
      "version": "3.6.1",
      "date": "2026-01-18"
    }
  ],
  "_exports": [
    "addBootSampleObject",
    "chiSq_gof",
    "chiSq_pearson",
    "compareToGLM",
    "count_table",
    "CountrFormula",
    "dBivariateWeibullCountFrankCopula",
    "dBivariateWeibullCountFrankCopula_loglik",
    "dCount_conv_bi",
    "dCount_conv_loglik_bi",
    "dCount_conv_loglik_user",
    "dCount_conv_user",
    "dmodifiedCount_bi",
    "dRenewalFrankCopula_bi",
    "dRenewalFrankCopula_user",
    "dWeibullCount",
    "dWeibullCount_loglik",
    "dWeibullgammaCount",
    "dWeibullgammaCount_loglik",
    "evCount_conv_bi",
    "evCount_conv_user",
    "evWeibullCount",
    "evWeibullgammaCount",
    "frequency_plot",
    "getParNames",
    "renewal",
    "renewal.control",
    "renewal.convPars",
    "renewal.seriesPars",
    "renewal.weiMethod",
    "renewalCoef",
    "renewalCoefList",
    "renewalCount",
    "renewalNames",
    "residuals_plot",
    "se.coef",
    "surv"
  ],
  "_datasets": [
    {
      "name": "fertility",
      "title": "Fertility data",
      "object": "fertility",
      "class": [
        "data.frame"
      ],
      "fields": [
        "children",
        "german",
        "years_school",
        "voc_train",
        "university",
        "religion",
        "year_birth",
        "rural",
        "age_marriage"
      ],
      "rows": 1243,
      "table": true,
      "tojson": true
    },
    {
      "name": "football",
      "title": "Football data",
      "object": "football",
      "class": [
        "data.frame"
      ],
      "fields": [
        "seasonId",
        "gameDate",
        "homeTeam",
        "awayTeam",
        "homeTeamGoals",
        "awayTeamGoals"
      ],
      "rows": 3040,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "Countr-package",
      "title": "Flexible Univariate Count Models Based on Renewal Processes",
      "topics": [
        "Countr-package",
        "Countr"
      ]
    },
    {
      "page": "addBootSampleObject",
      "title": "Create a bootsrap sample for coefficient estimates",
      "topics": [
        "addBootSampleObject"
      ]
    },
    {
      "page": "chiSq_gof",
      "title": "Formal Chi-square goodness-of-fit test",
      "topics": [
        "chiSq_gof",
        "chiSq_gof.glm",
        "chiSq_gof.negbin",
        "chiSq_gof.renewal"
      ]
    },
    {
      "page": "chiSq_pearson",
      "title": "Pearson Chi-Square test",
      "topics": [
        "chiSq_pearson",
        "chiSq_pearson.glm",
        "chiSq_pearson.renewal"
      ]
    },
    {
      "page": "compareToGLM",
      "title": "Compare renewals fit to glm models fit",
      "topics": [
        "compareToGLM"
      ]
    },
    {
      "page": "count_table",
      "title": "Summary of a count variable",
      "topics": [
        "count_table"
      ]
    },
    {
      "page": "CountrFormula",
      "title": "Create a formula for renewalCount",
      "topics": [
        "CountrFormula"
      ]
    },
    {
      "page": "dBivariateWeibullCountFrankCopula",
      "title": "Density and log-likelihood of the Bivariate Frank Copula Weibull Count model",
      "topics": [
        "dBivariateWeibullCountFrankCopula",
        "dBivariateWeibullCountFrankCopula_loglik"
      ]
    },
    {
      "page": "dCount_conv_bi",
      "title": "Compute count probabilities using convolution",
      "topics": [
        "dCount_conv_bi",
        "dCount_conv_user"
      ]
    },
    {
      "page": "dCount_conv_loglik_bi",
      "title": "Log-likelihood of a count probability computed by convolution (bi)",
      "topics": [
        "dCount_conv_loglik_bi",
        "dCount_conv_loglik_user"
      ]
    },
    {
      "page": "dmodifiedCount_bi",
      "title": "Compute count probabilities based on modified renewal process (bi)",
      "topics": [
        "dmodifiedCount_bi",
        "dmodifiedCount_user"
      ]
    },
    {
      "page": "dRenewalFrankCopula_user",
      "title": "Bivariate Count probability Using Frank copula (user)",
      "topics": [
        "dRenewalFrankCopula_bi",
        "dRenewalFrankCopula_user"
      ]
    },
    {
      "page": "dWeibullCount",
      "title": "Probability calculations for Weibull count models",
      "topics": [
        "dWeibullCount",
        "dWeibullCount_loglik",
        "evWeibullCount"
      ]
    },
    {
      "page": "dWeibullgammaCount_mat_Covariates",
      "title": "Univariate Weibull Count Probability with gamma and covariate heterogeneity",
      "topics": [
        "dWeibullgammaCount_mat_Covariates"
      ]
    },
    {
      "page": "evCount_conv_bi",
      "title": "Expected value and variance of a renewal count process",
      "topics": [
        "evCount_conv_bi",
        "evCount_conv_user"
      ]
    },
    {
      "page": "fertility",
      "title": "Fertility data",
      "topics": [
        "fertility"
      ]
    },
    {
      "page": "football",
      "title": "Football data",
      "topics": [
        "football"
      ]
    },
    {
      "page": "frequency_plot",
      "title": "Plot a frequency chart",
      "topics": [
        "frequency_plot"
      ]
    },
    {
      "page": "getParNames",
      "title": "Return the names of distribution parameters",
      "topics": [
        "getParNames"
      ]
    },
    {
      "page": "predict.renewal",
      "title": "Predict method for renewal objects",
      "topics": [
        "predict.renewal"
      ]
    },
    {
      "page": "renewal_methods",
      "title": "Methods for renewal objects",
      "topics": [
        "addBootSampleObject.renewal",
        "coef.renewal",
        "confint.renewal",
        "df.residual.renewal",
        "extractAIC.renewal",
        "fitted.renewal",
        "logLik.renewal",
        "model.matrix.renewal",
        "nobs.renewal",
        "print.renewal",
        "print.summary.renewal",
        "renewal_methods",
        "residuals.renewal",
        "residuals_plot.renewal",
        "summary.renewal",
        "vcov.renewal"
      ]
    },
    {
      "page": "renewalCoef",
      "title": "Get named vector of coefficients for renewal objects",
      "topics": [
        "renewalCoef"
      ]
    },
    {
      "page": "renewalCoefList",
      "title": "Split a vector using the prefixes of the names for grouping",
      "topics": [
        "renewalCoefList"
      ]
    },
    {
      "page": "renewalCount",
      "title": "Fit renewal count processes regression models",
      "topics": [
        "renewalCount"
      ]
    },
    {
      "page": "renewalNames",
      "title": "Get names of parameters of renewal regression models",
      "topics": [
        "renewalNames"
      ]
    },
    {
      "page": "residuals_plot",
      "title": "Method to visualise the residuals",
      "topics": [
        "residuals_plot"
      ]
    },
    {
      "page": "se.coef",
      "title": "Extract Standard Errors of Model Coefficients",
      "topics": [
        "se.coef",
        "se.coef.renewal"
      ]
    },
    {
      "page": "surv",
      "title": "Wrapper to built-in survival functions",
      "topics": [
        "surv"
      ]
    }
  ],
  "_readme": "https://github.com/cran/Countr/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "assertthat",
    "backports",
    "bbmle",
    "bdsmatrix",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "cowplot",
    "cpp11",
    "data.table",
    "Deriv",
    "deSolve",
    "doBy",
    "dplyr",
    "farver",
    "fastGHQuad",
    "flexsurv",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "lsoda",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "mstate",
    "muhaz",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "optimx",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "pracma",
    "pscl",
    "purrr",
    "quadprog",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstpm2",
    "S7",
    "scales",
    "SparseM",
    "standardize",
    "statmod",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "VGAM",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_sysdeps": [
    {
      "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": "ComputationalPerformance.Rnw",
      "filename": "ComputationalPerformance.pdf",
      "title": "Comparing performance of computational methods",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 16:32:24",
      "modified": "2017-11-20 16:32:24",
      "commits": 1
    },
    {
      "source": "VarianceCovariance.Rnw",
      "filename": "VarianceCovariance.pdf",
      "title": "Computation of variance-covariance matrix",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 16:32:24",
      "modified": "2017-11-20 16:32:24",
      "commits": 1
    },
    {
      "source": "exampleFertility.Rnw",
      "filename": "exampleFertility.pdf",
      "title": "Example with fertility data",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 16:32:24",
      "modified": "2017-11-20 16:32:24",
      "commits": 1
    },
    {
      "source": "exampleFootball.Rnw",
      "filename": "exampleFootball.pdf",
      "title": "Example with football data",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 16:32:24",
      "modified": "2017-11-20 16:32:24",
      "commits": 1
    },
    {
      "source": "ModelSelectionAndComparison.Rnw",
      "filename": "ModelSelectionAndComparison.pdf",
      "title": "Example with quine data",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 16:32:24",
      "modified": "2017-11-20 16:32:24",
      "commits": 1
    },
    {
      "source": "Countr_guide.Rnw",
      "filename": "Countr_guide.pdf",
      "title": "Guide for package Countr",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 16:32:24",
      "modified": "2017-11-20 16:32:24",
      "commits": 1
    }
  ],
  "_score": 4.712649701627211,
  "_indexed": false,
  "_nocasepkg": "countr",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://geobosh.r-universe.dev/Countr",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.6.1",
      "date": "2026-06-17T08:21:41.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "2c8f2384982075ee545cb28f24fd95fdd8166635",
      "fileid": "307a33f300b4997f00d3abc172c934d490facc48b99d04920acd53da775079bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27675166198"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.6.1",
      "date": "2026-06-17T08:21:37.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "2c8f2384982075ee545cb28f24fd95fdd8166635",
      "fileid": "7862b75d99e32a409f42e104b95cf989fe961a2aa5db2f1b428cdded1789b12d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27675166198"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.6.1",
      "date": "2026-06-17T08:21:41.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "2c8f2384982075ee545cb28f24fd95fdd8166635",
      "fileid": "bb197777e1ec957469008b17a60d6b44abcf4055dca791fda6bf97c768557570",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27675166198"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.6.1",
      "date": "2026-06-17T08:21:25.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "2c8f2384982075ee545cb28f24fd95fdd8166635",
      "fileid": "26747db4c100c970c1f2d5a22e81c7741f2f00481c44eac9565c1ede8cbce6d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27675166198"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.6.1",
      "date": "2026-06-17T08:21:58.000Z",
      "arch": "emscripten",
      "commit": "2c8f2384982075ee545cb28f24fd95fdd8166635",
      "fileid": "a6c3abd5d2a2385836afb96037cd80c3a98c0329427a7ff8476cdb5a842a87ae",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27675166198"
    }
  ]
}