{
  "_id": "6a1a74c61d7bb097a09d1933",
  "Package": "trafficCAR",
  "Type": "Package",
  "Title": "Bayesian CAR Models for Road-Segment Traffic",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\n\"Madison\", \"Ell\",\nemail = \"mell@stat.tamu.edu\",\nrole = c(\"aut\", \"cre\")\n)\n)",
  "Author": "Madison Ell [aut, cre]",
  "Maintainer": "Madison Ell <mell@stat.tamu.edu>",
  "Description": "Tools for simulating and modeling traffic flow on road\nnetworks using spatial conditional autoregressive (CAR) models.\nThe package represents road systems as graphs derived from\n'OpenStreetMap' data <https://www.openstreetmap.org/> and\nsupports network-based spatial dependence, basic preprocessing,\nand visualization for spatial traffic analysis.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-30 05:19:15 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-03-30 09:52:21 UTC",
  "RemoteUrl": "https://github.com/cran/trafficCAR",
  "RemoteRef": "HEAD",
  "RemoteSha": "a7809875d42a5bdb4da2d415a9ee52f163829951",
  "MD5sum": "814015a64054bca45a2fb1e3e7cb2440",
  "_user": "cran",
  "_type": "src",
  "_file": "trafficCAR_0.1.1.tar.gz",
  "_fileid": "99c9f39fef696612f7c2ba7676da7b1f448766a04bd501dcaf2cc6d2709dfaa1",
  "_filesize": 839299,
  "_sha256": "99c9f39fef696612f7c2ba7676da7b1f448766a04bd501dcaf2cc6d2709dfaa1",
  "_created": "2026-05-30T05:19:15.000Z",
  "_published": "2026-05-30T05:25:26.977Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78626413546,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7305660794"
    },
    {
      "job": 78626413554,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7305662260"
    },
    {
      "job": 78626205567,
      "time": 221,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7305630869"
    },
    {
      "job": 78626413539,
      "time": 202,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7305666275"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26629487826",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/trafficCAR",
  "_commit": {
    "id": "a7809875d42a5bdb4da2d415a9ee52f163829951",
    "author": "Madison Ell <mell@stat.tamu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.1\n",
    "time": 1774864341
  },
  "_maintainer": {
    "name": "Madison Ell",
    "email": "mell@stat.tamu.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "units",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "osmdata",
      "role": "Suggests"
    },
    {
      "package": "lwgeom",
      "role": "Suggests"
    },
    {
      "package": "leaflet",
      "role": "Suggests"
    },
    {
      "package": "viridisLite",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "usethis",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-01-27"
    },
    {
      "name": "0.1.1",
      "date": "2026-03-30"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 443,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/trafficCAR"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/trafficCAR.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-01-27"
    },
    {
      "version": "0.1.1",
      "date": "2026-03-30"
    }
  ],
  "_exports": [
    "augment_roads",
    "build_adjacency",
    "build_network",
    "car_precision",
    "fetch_osm_roads",
    "fit_car",
    "fit_traffic",
    "icar_sum_to_zero",
    "intrinsic_car_precision",
    "map_roads_interactive",
    "map_roads_interactive_layers",
    "moran_residuals",
    "plot_mcmc_diagnostics",
    "plot_observed_fitted",
    "plot_predicted",
    "plot_relative_congestion",
    "plot_roads_static",
    "plot_traffic_map",
    "ppc_summary",
    "roads_to_segments",
    "sample_proper_car",
    "simplify_network",
    "weights_from_adjacency"
  ],
  "_datasets": [
    {
      "name": "roads_small",
      "title": "Example road network datasets",
      "object": "roads_small",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "osm_id",
        "name",
        "NHS",
        "Texas_Trunk_System",
        "access",
        "alt_name",
        "area",
        "bridge",
        "crossing",
        "crossing.markings",
        "destination",
        "destination.ref",
        "destination.street",
        "emergency",
        "expressway",
        "footway",
        "frontage_road",
        "golf",
        "hgv",
        "hgv.national_network",
        "highway",
        "lane_markings",
        "lanes",
        "lanes.backward",
        "lanes.both_ways",
        "lanes.forward",
        "layer",
        "lit",
        "maxheight",
        "maxspeed",
        "name_1",
        "noname",
        "old_name",
        "old_ref",
        "oneway",
        "postal_code",
        "ref",
        "service",
        "source",
        "source.Texas_Trunk_System",
        "source.hgv",
        "source.hgv.national_network",
        "surface",
        "tiger.cfcc",
        "tiger.county",
        "tiger.name_base",
        "tiger.name_base_1",
        "tiger.name_direction_prefix",
        "tiger.name_direction_suffix",
        "tiger.name_type",
        "tiger.reviewed",
        "tiger.separated",
        "tiger.source",
        "tiger.tlid",
        "tiger.zip_left",
        "tiger.zip_left_1",
        "tiger.zip_left_2",
        "tiger.zip_left_3",
        "tiger.zip_right",
        "tiger.zip_right_1",
        "tiger.zip_right_2",
        "tiger.zip_right_3",
        "tunnel",
        "turn.lanes.both_ways",
        "geometry"
      ],
      "rows": 956,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "augment_roads",
      "title": "Augment roads with predicted traffic quantities",
      "topics": [
        "augment_roads"
      ]
    },
    {
      "page": "build_adjacency",
      "title": "Build segment adjacency from segment geometries",
      "topics": [
        "build_adjacency"
      ]
    },
    {
      "page": "build_network",
      "title": "Build a road network graph from sf LINESTRING data",
      "topics": [
        "build_network"
      ]
    },
    {
      "page": "car_precision",
      "title": "CAR precision matrix from an adjacency matrix",
      "topics": [
        "car_precision"
      ]
    },
    {
      "page": "fetch_osm_roads",
      "title": "Fetch road geometries from OpenStreetMap",
      "topics": [
        "fetch_osm_roads"
      ]
    },
    {
      "page": "fit_car",
      "title": "Fit Gaussian CAR / ICAR regression via Gibbs sampling",
      "topics": [
        "fit_car"
      ]
    },
    {
      "page": "fit_traffic",
      "title": "Fit a Gaussian CAR traffic model (speed or travel time)",
      "topics": [
        "fit_traffic"
      ]
    },
    {
      "page": "icar_sum_to_zero",
      "title": "Apply sum-to-zero constraint to ICAR precision",
      "topics": [
        "icar_sum_to_zero"
      ]
    },
    {
      "page": "intrinsic_car_precision",
      "title": "Intrinsic CAR (ICAR) precision matrix",
      "topics": [
        "intrinsic_car_precision"
      ]
    },
    {
      "page": "map_roads_interactive",
      "title": "Interactive map of road-segment traffic measures",
      "topics": [
        "map_roads_interactive"
      ]
    },
    {
      "page": "map_roads_interactive_layers",
      "title": "Interactive map with multiple standard traffic layers",
      "topics": [
        "map_roads_interactive_layers"
      ]
    },
    {
      "page": "moran_residuals",
      "title": "Moran's I for trafficCAR residuals",
      "topics": [
        "moran_residuals"
      ]
    },
    {
      "page": "plot_mcmc_diagnostics",
      "title": "MCMC diagnostic plots",
      "topics": [
        "plot_mcmc_diagnostics"
      ]
    },
    {
      "page": "plot_observed_fitted",
      "title": "Plot observed vs predicted traffic values",
      "topics": [
        "plot_observed_fitted"
      ]
    },
    {
      "page": "plot_predicted",
      "title": "Plot predicted traffic outcome on road network",
      "topics": [
        "plot_predicted"
      ]
    },
    {
      "page": "plot_relative_congestion",
      "title": "Plot relative congestion on road network",
      "topics": [
        "plot_relative_congestion"
      ]
    },
    {
      "page": "plot_roads_static",
      "title": "Static map of road-segment traffic measures",
      "topics": [
        "plot_roads_static"
      ]
    },
    {
      "page": "plot_traffic_map",
      "title": "Quick map helper for augmented roads",
      "topics": [
        "plot_traffic_map"
      ]
    },
    {
      "page": "ppc_summary",
      "title": "Posterior predictive checks for trafficCAR fits",
      "topics": [
        "ppc_summary"
      ]
    },
    {
      "page": "residuals.traffic_fit",
      "title": "Residuals for trafficCAR fits",
      "topics": [
        "residuals.traffic_fit"
      ]
    },
    {
      "page": "roads_datasets",
      "title": "Example road network datasets",
      "topics": [
        "roads_cstat",
        "roads_datasets",
        "roads_small"
      ]
    },
    {
      "page": "roads_to_segments",
      "title": "Convert road geometries to modeling segments",
      "topics": [
        "roads_to_segments"
      ]
    },
    {
      "page": "sample_proper_car",
      "title": "Gibbs sampler for a proper CAR latent Gaussian model",
      "topics": [
        "sample_proper_car"
      ]
    },
    {
      "page": "simplify_network",
      "title": "Simplify a built network object by removing parallel edges (and loops)",
      "topics": [
        "simplify_network"
      ]
    },
    {
      "page": "weights_from_adjacency",
      "title": "Construct spatial weights matrix",
      "topics": [
        "weights_from_adjacency"
      ]
    }
  ],
  "_readme": "https://github.com/cran/trafficCAR/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "distributional",
    "e1071",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "igraph",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "posterior",
    "proxy",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "tensorA",
    "tibble",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "CAR-models.Rmd",
      "filename": "CAR-models.html",
      "title": "CAR-models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Conditional autoregressive (CAR) models",
        "ICAR model",
        "Proper CAR model",
        "Disconnected graphs and isolated nodes",
        "Scaling (Sørbye–Rue)"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "creating-custom-road-datasets.Rmd",
      "filename": "creating-custom-road-datasets.html",
      "title": "Creating Custom Road Datasets with trafficCAR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Step 1: Obtain road data for a city",
        "Step 2: Clean, validate, and inspect geometries",
        "Step 3: Write the dataset to GeoJSON (raw source)",
        "Step 4A: Save as .rds (recommended for user projects)",
        "Step 4B: Convert GeoJSON to .rda (recommended for R packages)",
        "Step 5: Use the dataset in trafficCAR",
        "Organizing multiple city datasets",
        "Example directory layout (package development)",
        "Example data-raw script",
        "Using external GeoJSON files directly",
        "Summary"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "fetch-osm-roads.Rmd",
      "filename": "fetch-osm-roads.html",
      "title": "Fetching OSM roads",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Fetch by place name",
        "Fetch by bounding box",
        "Filtering the OSM query"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "plot-model-fit-diagnostics-spatial.Rmd",
      "filename": "plot-model-fit-diagnostics-spatial.html",
      "title": "Plotting model fit, diagnostics, and spatial patterns",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Load data and build segment adjacency",
        "Simulate an outcome and fit a CAR model",
        "Prepare a plotting-ready fit object",
        "Plot observed vs fitted values",
        "Plot MCMC diagnostics",
        "Plot spatial predictions",
        "Tips for applied workflows"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "sampling.Rmd",
      "filename": "sampling.html",
      "title": "Sampling from Gaussian CAR and ICAR Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose",
        "CAR and ICAR precision matrices",
        "A small graph example",
        "Proper CAR",
        "ICAR",
        "Sampling from a sparse precision matrix",
        "Zero-mean sampling",
        "Nonzero mean (linear term)",
        "Notes on ICAR sampling",
        "A road-like graph example",
        "Option 2: Synthetic road-like graph (fallback)",
        "CAR/ICAR sampling on the road graph",
        "Summary"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "traffic-flow.Rmd",
      "filename": "traffic-flow.html",
      "title": "traffic-flow",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "model_diagnostics_and_checking.Rmd",
      "filename": "model_diagnostics_and_checking.html",
      "title": "trafficCAR Model Diagnostics and Checking",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Residual diagnostics",
        "Moran’s I on residuals",
        "Posterior predictive checks",
        "Practical workflow",
        "Limitations"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    },
    {
      "source": "trafficCAR-intro.Rmd",
      "filename": "trafficCAR-intro.html",
      "title": "trafficCAR-intro",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load the package and example data",
        "Build a road network graph",
        "Spatial weights from the adjacency matrix",
        "CAR and ICAR precision matrices",
        "Sampling from a CAR precision matrix",
        "Interactive road visualizations",
        "Takeaways",
        "Further directions"
      ],
      "created": "2026-01-27 20:50:02",
      "modified": "2026-01-27 20:50:02",
      "commits": 1
    }
  ],
  "_score": 3.9030899869919438,
  "_indexed": true,
  "_nocasepkg": "trafficcar",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-30T05:23:48.000Z",
      "distro": "noble",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "f3f05133bf8feb780df00a2a6b552e5b24f77c0913023f7b113883957ae5b82c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629487826"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-30T05:23:57.000Z",
      "distro": "noble",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "1e975a4c1c99ddb786085c993d3710f6964cfe496f67c12acf67248954983f26",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629487826"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-05-30T05:25:11.000Z",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "45ca0e1c962420a059c3614226cb7694eb933eded0e0cec962174795732bc80b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629487826"
    }
  ]
}