{
  "_id": "6ac0f5a0552a13804ac7e38e",
  "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-10-03 12:28:18 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",
  "_user": "cran",
  "_type": "src",
  "_file": "trafficCAR_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/4eff0973a802873f4c0212d703d20d4b932925696878f4ee047d8d893bc1da34",
  "_filesize": 841751,
  "_sha256": "4eff0973a802873f4c0212d703d20d4b932925696878f4ee047d8d893bc1da34",
  "_expires": "2027-01-11T12:31:26.000Z",
  "_created": "2026-10-03T12:28:18.000Z",
  "_published": "2026-10-03T12:31:28.230Z",
  "_jobs": [
    {
      "job": 111202634850,
      "time": 148,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11273802323"
    },
    {
      "job": 111202634806,
      "time": 152,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11274381784"
    },
    {
      "job": 111202168891,
      "time": 182,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11274176956"
    },
    {
      "job": 111202634813,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11273932603"
    },
    {
      "job": 111202634852,
      "time": 103,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11273502988"
    },
    {
      "job": 111202634843,
      "time": 114,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11273877785"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/37122802335",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 345,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/trafficCAR"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/trafficCAR.html",
    "LICENSE"
  ],
  "_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",
    "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-10-03T12:30:26.000Z",
      "distro": "resolute",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "https://r2.ropensci.org/eec2461f4448b2a101f1eadf66d1aaf0e2a1dc3f019cd8ec8dec95a7f79e9191",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37122802335"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-03T12:30:29.000Z",
      "distro": "resolute",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "https://r2.ropensci.org/ffc03a8328eed8071a231da004e772afc3a7412a2a84a6b2898ed2c120aa7d6f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37122802335"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-03T12:30:42.000Z",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "https://r2.ropensci.org/0bb30f809480cf82875f2200ec6aea3176319ae4ea8caa59bbdb0c0880f7d425",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37122802335"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-03T12:29:30.000Z",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "https://r2.ropensci.org/3b2908365d8d5680b310b38991d803f173ebc76e3fff34222a5586256c5bca3c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37122802335"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-03T12:29:41.000Z",
      "commit": "a7809875d42a5bdb4da2d415a9ee52f163829951",
      "fileid": "https://r2.ropensci.org/225428f4966cb4a6912fdf11cde7660d71272f5f60b763a7db3044fbfbd50f0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37122802335"
    }
  ]
}