{
  "_id": "6a3c0436b2c3d1eea7a4bc8c",
  "Package": "networkscaleup",
  "Title": "Network Scale-Up Models for Aggregated Relational Data",
  "Version": "0.2-2",
  "Authors@R": "c(person(\"Ian\", \"Laga\", , \"ilaga25@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-5164-4856\")),\nperson(\"Owen G.\", \"Ward\", , \"oward@sfu.ca\", role = c(\"aut\")),\nperson(\"Anna L.\", \"Smith\", role = c(\"aut\")),\nperson(\"Benjamin\", \"Vogel\", role = c(\"aut\")),\nperson(\"Jieyun\", \"Wang\", role = c(\"aut\")),\nperson(\"Le\", \"Bao\", , \"lebao@psu.edu\", role = c(\"aut\")),\nperson(\"Xiaoyue\", \"Niu\", , \"Xiaoyue@psu.edu\", role = c(\"aut\")))",
  "Description": "Provides a variety of Network Scale-up Models for\nresearchers to analyze Aggregated Relational Data, through the\nuse of Stan and 'glmmTMB'. Also provides tools for model\nchecking In this version, the package implements models from\nLaga, I., Bao, L., and Niu, X (2023)\n<doi:10.1080/01621459.2023.2165929>, Zheng, T., Salganik, M.\nJ., and Gelman, A. (2006) <doi:10.1198/016214505000001168>,\nKillworth, P. D., Johnsen, E. C., McCarty, C., Shelley, G. A.,\nand Bernard, H. R. (1998) <doi:10.1016/S0378-8733(96)00305-X>,\nand Killworth, P. D., McCarty, C., Bernard, H. R., Shelley, G.\nA., and Johnsen, E. C. (1998) <doi:10.1177/0193841X9802200205>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-24 15:34:13 UTC",
    "User": "root"
  },
  "Author": "Ian Laga [aut, cre] (<https://orcid.org/0000-0002-5164-4856>),\nOwen G. Ward [aut], Anna L. Smith [aut], Benjamin Vogel [aut],\nJieyun Wang [aut], Le Bao [aut], Xiaoyue Niu [aut]",
  "Maintainer": "Ian Laga <ilaga25@gmail.com>",
  "URL": "https://github.com/ilaga/networkscaleup",
  "Config/pak/sysreqs": "cmake make libicu-dev libx11-dev",
  "Repository": "https://ilaga.r-universe.dev",
  "Date/Publication": "2026-06-24 15:15:11 UTC",
  "RemoteUrl": "https://github.com/ilaga/networkscaleup",
  "RemoteRef": "HEAD",
  "RemoteSha": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
  "MD5sum": "624129d6b1e69c072f028b528b5eea5f",
  "_user": "ilaga",
  "_type": "src",
  "_file": "networkscaleup_0.2-2.tar.gz",
  "_fileid": "2731cc82b34b091da9bd845d330b6c360f2980a0dde57f85f32392f47efaae46",
  "_filesize": 1153478,
  "_sha256": "2731cc82b34b091da9bd845d330b6c360f2980a0dde57f85f32392f47efaae46",
  "_created": "2026-06-24T15:34:13.000Z",
  "_published": "2026-06-24T16:22:14.173Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83237809390,
      "time": 1166,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7855266133"
    },
    {
      "job": 83237809382,
      "time": 1167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7855265503"
    },
    {
      "job": 83237809352,
      "time": 1122,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7855247295"
    },
    {
      "job": 83237809426,
      "time": 1312,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7855326521"
    },
    {
      "job": 83237809593,
      "time": 811,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7855109093"
    },
    {
      "job": 83237809397,
      "time": 1462,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7855390537"
    },
    {
      "job": 83237809402,
      "time": 778,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7855095147"
    },
    {
      "job": 83237809374,
      "time": 2187,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7855707504"
    },
    {
      "job": 83231867392,
      "time": 1556,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7854743205"
    },
    {
      "job": 83237809321,
      "time": 210,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 83237809348,
      "time": 1748,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7855513951"
    },
    {
      "job": 83237809357,
      "time": 1736,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7855508763"
    },
    {
      "job": 83237809394,
      "time": 1742,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7855511290"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ilaga/networkscaleup",
  "_commit": {
    "id": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
    "author": "Ian Laga <ilaga25@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #9 from ilaga/dev\n\nDev",
    "time": 1782314111
  },
  "_maintainer": {
    "name": "Ian Laga",
    "email": "ilaga25@gmail.com",
    "login": "ilaga",
    "description": "",
    "uuid": 11948264,
    "orcid": "0000-0002-5164-4856"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "Imports"
    },
    {
      "package": "LaplacesDemon",
      "version": ">= 16.1.6",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "glmmTMB",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "trialr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "RMTstat",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    }
  ],
  "_owner": "ilaga",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "ilaga",
      "count": 60,
      "uuid": 11948264
    },
    {
      "user": "owenward",
      "count": 23,
      "uuid": 33092609
    }
  ],
  "_userbio": {
    "uuid": 11948264,
    "type": "user",
    "name": "Ian Laga",
    "followers": 7
  },
  "_downloads": {
    "count": 337,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/networkscaleup"
  },
  "_devurl": "https://github.com/ilaga/networkscaleup",
  "_searchresults": 16,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/networkscaleup.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ilaga/networkscaleup",
  "_realowner": "ilaga",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-1",
      "date": "2022-04-06"
    },
    {
      "version": "0.1-2",
      "date": "2024-02-25"
    },
    {
      "version": "0.2-1",
      "date": "2025-12-11"
    }
  ],
  "_exports": [
    "construct_pearson",
    "construct_rqr",
    "correlatedStan",
    "cov_plots",
    "dispersion_metric",
    "fit_mle",
    "get_surrogate",
    "hang_rootogram_ard",
    "killworth",
    "make_ard",
    "overdispersed",
    "overdispersedStan",
    "plot_fitted",
    "residual_correlation",
    "residual_heatmap",
    "scaling",
    "tw_group_corr_test"
  ],
  "_datasets": [
    {
      "name": "example_data",
      "title": "Simulated ARD data set with z and x.",
      "object": "example_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "construct_pearson",
      "title": "Compute Pearson Residuals for ARD matrix and fitted model",
      "topics": [
        "construct_pearson"
      ]
    },
    {
      "page": "construct_rqr",
      "title": "Compute Randomized Quantile Residuals for ARD Models",
      "topics": [
        "construct_rqr"
      ]
    },
    {
      "page": "correlatedStan",
      "title": "Fit ARD using the uncorrelated or correlated model in Stan This function fits the ARD using either the uncorrelated or correlated model in Laga et al. (2021) in Stan. The population size estimates and degrees are scaled using a post-hoc procedure.",
      "topics": [
        "correlatedStan"
      ]
    },
    {
      "page": "cov_plots",
      "title": "Covariance plots",
      "topics": [
        "cov_plots"
      ]
    },
    {
      "page": "dispersion_metric",
      "title": "Dispersion Metric for Fitted ARD Model",
      "topics": [
        "dispersion_metric"
      ]
    },
    {
      "page": "example_data",
      "title": "Simulated ARD data set with z and x.",
      "topics": [
        "example_data"
      ]
    },
    {
      "page": "fit_mle",
      "title": "Fit basic Poisson and Negative Binomial models using glmmTMB",
      "topics": [
        "fit_mle"
      ]
    },
    {
      "page": "get_surrogate",
      "title": "Compute Surrogate Residuals for ARD Models",
      "topics": [
        "get_surrogate"
      ]
    },
    {
      "page": "hang_rootogram_ard",
      "title": "Hanging Rootogram for Fitted ARD Model",
      "topics": [
        "hang_rootogram_ard"
      ]
    },
    {
      "page": "killworth",
      "title": "Fit Killworth models to ARD. This function estimates the degrees and population sizes using the plug-in MLE and MLE estimator.",
      "topics": [
        "killworth"
      ]
    },
    {
      "page": "log_mix_uniform",
      "title": "log computed uniform quantile",
      "topics": [
        "log_mix_uniform"
      ]
    },
    {
      "page": "make_ard",
      "title": "Generate simulated ARD",
      "topics": [
        "make_ard"
      ]
    },
    {
      "page": "make_ard_tidy",
      "title": "Construct tibble from ARD matrix",
      "topics": [
        "make_ard_tidy"
      ]
    },
    {
      "page": "networkscaleup",
      "title": "The 'networkscaleup' package.",
      "topics": [
        "networkscaleup-package",
        "networkscaleup"
      ]
    },
    {
      "page": "overdispersed",
      "title": "Fit Overdispersed model to ARD (Gibbs-Metropolis)",
      "topics": [
        "overdispersed"
      ]
    },
    {
      "page": "overdispersedStan",
      "title": "Fit ARD using the Overdispersed model in Stan",
      "topics": [
        "overdispersedStan"
      ]
    },
    {
      "page": "plot_fitted",
      "title": "Plot residuals against fitted values",
      "topics": [
        "plot_fitted"
      ]
    },
    {
      "page": "residual_correlation",
      "title": "Construction Residual (row/column) correlation matrix",
      "topics": [
        "residual_correlation"
      ]
    },
    {
      "page": "residual_heatmap",
      "title": "Construct heatmap of residuals",
      "topics": [
        "residual_heatmap"
      ]
    },
    {
      "page": "rqr_nbinom_logs",
      "title": "compute numerically stable negative binomial rqr",
      "topics": [
        "rqr_nbinom_logs"
      ]
    },
    {
      "page": "rqr_pois_logs",
      "title": "compute numerically stable Poisson rqr",
      "topics": [
        "rqr_pois_logs"
      ]
    },
    {
      "page": "scaling",
      "title": "Scale raw log degree and log prevalence estimates",
      "topics": [
        "scaling"
      ]
    },
    {
      "page": "tw_group_corr_test",
      "title": "Tracy-Widom test for residual group correlation",
      "topics": [
        "tw_group_corr_test"
      ]
    }
  ],
  "_readme": "https://github.com/ilaga/networkscaleup/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "arrayhelpers",
    "backports",
    "BH",
    "binom",
    "bit",
    "bit64",
    "boot",
    "broom",
    "callr",
    "checkmate",
    "cli",
    "clipr",
    "coda",
    "colorspace",
    "cowplot",
    "cpp11",
    "crayon",
    "Deriv",
    "desc",
    "distributional",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "fracdiff",
    "generics",
    "ggdist",
    "ggplot2",
    "glmmTMB",
    "glue",
    "gridExtra",
    "gtable",
    "gtools",
    "hms",
    "inline",
    "isoband",
    "labeling",
    "LaplacesDemon",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "otel",
    "pbkrtest",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "prettyunits",
    "processx",
    "progress",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "readr",
    "reformulas",
    "rlang",
    "RMTstat",
    "rstan",
    "rstantools",
    "S7",
    "sandwich",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "svUnit",
    "tensorA",
    "tibble",
    "tidybayes",
    "tidyr",
    "tidyselect",
    "timeDate",
    "TMB",
    "trialr",
    "tzdb",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "ARD-Diagnostics.Rmd",
      "filename": "ARD-Diagnostics.html",
      "title": "Diagnostic tools for ARD Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating Data",
        "Hanging Rootograms",
        "Testing for Covariates"
      ],
      "created": "2026-06-24 15:15:11",
      "modified": "2026-06-24 15:15:11",
      "commits": 1
    },
    {
      "source": "FittingNetworkScaleup.Rmd",
      "filename": "FittingNetworkScaleup.html",
      "title": "Fitting Network Scale-up Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Instructions",
        "PIMLE",
        "MLE",
        "Bayesian Models",
        "Overdispersed Model",
        "Correlated Models"
      ],
      "created": "2022-10-10 17:31:38",
      "modified": "2026-06-24 15:15:11",
      "commits": 2
    }
  ],
  "_score": 4.8061799739838875,
  "_indexed": true,
  "_nocasepkg": "networkscaleup",
  "_universes": [
    "ilaga"
  ],
  "_previous": "0.1-2",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2-2",
      "date": "2026-06-24T15:48:30.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "be5414895e546e4d861a83ee487a6ad08b1c5efc29bfd465ec8c49c4707abfb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2-2",
      "date": "2026-06-24T15:48:26.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "27a0e4d550743912b5b892b66a9ad6f72e70df8d68fabf995a53c4eaf8ca1143",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2-2",
      "date": "2026-06-24T15:48:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "e15edffbb978e1dfc14503643b47ab76b2e4755aa6b5c167be1c26b6d51d024a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2-2",
      "date": "2026-06-24T15:48:59.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "b04572e253636e6d1c7519f929d7a12accfcc8e73d6a45e675e399025d9753f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2-2",
      "date": "2026-06-24T15:47:08.000Z",
      "arch": "aarch64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "fe82f93eb6618504f9167616b4b6cbf7d701ccac0ddbe249a0ea1c77a31fc2e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2-2",
      "date": "2026-06-24T15:48:33.000Z",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "4456fb88b3392add8487af2c00cd6d8e98ca5bd11bb550d2c62501547fd874e4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2-2",
      "date": "2026-06-24T15:47:02.000Z",
      "arch": "aarch64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "258dff969a76d11257fee7cd3badd83a63a743de71cc52ddbe8e5085753413ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2-2",
      "date": "2026-06-24T15:51:44.000Z",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "a8b314727a22d51127fdc7c52a10dd42cdcee44d6c21380dc437beda85d5b44c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2-2",
      "date": "2026-06-24T15:47:11.000Z",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "ad1ce2f2c4ad990d28c9862ac61b3f56d7cd735c75e8060856f7d53f500b66f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2-2",
      "date": "2026-06-24T15:47:12.000Z",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "702574f5fe0f70c69e650ecfc20c728d64d371eac83393220bc239113a66eabd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2-2",
      "date": "2026-06-24T15:47:20.000Z",
      "arch": "x86_64",
      "commit": "f24808647e581e4cc2ccc68b2d5caad7982ebfc0",
      "fileid": "835f262d4377a95701568d74f2583bc52a20678995d6d5bfb5528f8369a997df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ilaga/actions/runs/28109244542"
    }
  ]
}