Skip to contents

pkgdown site

pkgdown site

R package, R scripts and Quarto docs for survey weighting.

What’s Here

The hts_weighting repository contains:

hts_weighting/
├── R/                      # Reusable package functions (hts.weighting)
├── manual/                 # Quarto book mirroring the scripts
├── configs/                # Project settings (YAML) + optional configs_schema.json
├── inst/                   # PopulationSim settings and testing utilities
├── tests/                  # End-to-end tests for hts.weighting package; unit tests go here when developed
├── renv.lock, renv/        # R dependency lock and infrastructure
├── pyproject.toml, uv.lock # Python dependencies for PopulationSim
└── .Renviron               # User/machine-level paths and toggles (created by user)

Project directories created on first run (by get_settings()):

hts_weighting/
└── <WEIGHTING_DATA_PATH>/ # (set in .Renviron))
  ├── input/      # POPS, ACS/PUMS, sample plan, geography/crosswalks
  ├── working/    # intermediates and PopSim runs
  ├── output/     # final deliverables
  └── report/     # QA/QC tables and plots

Project directories created by quarto render manual:

hts_weighting/
└── manual/ # (set in .Renviron))
  ├── _book/      # Quarto book output (html, files, etc)
  ├── _freeze/    # Cached chunk output for faster rendering (if enabled)
  ├── output/     # final deliverables
  └── report/     # QA/QC tables and plots

Installation

See INSTALL.

Usage

See USAGE.

Contributing

See CONTRIBUTING.

License

See LICENSE.