Skip to contents

Create a Quarto project with an editable NIS analysis, methods text, and a disclosure checklist. The example runs on invented discharges until you supply your own data directory.

Usage

nis_new_study(path)

Arguments

path

A new local directory path for the study.

Value

The normalized path to the created study directory.

Details

Open analysis.qmd to edit the cohort, outcomes, and analysis. Render with quarto render analysis.qmd from the study directory. With params.data_path unset, the report uses nis_example(). Set that parameter to the private directory containing your annual Parquet files.

Review the rendered methods paragraph and checklist receipt against the study protocol. Review disclosure across the finished report before sharing it.

See also

Start a Quarto study, nis_design_report() to inspect the fitted sample and nis_scan_outputs() to scan the files you plan to share.

Examples

study_path <- tempfile("nis-study-example-")
nis_new_study(study_path)
#> [1] "/tmp/Rtmpu92eK9/nis-study-example-1924742d295b"
list.files(study_path, all.files = TRUE, no.. = TRUE)
#> [1] ".gitignore"   "_quarto.yml"  "analysis.qmd"