dp.inputs.hiv.abortion: Data on abortions among HIV-positive women

View source: R/extract-dp.R

dp.inputs.hiv.abortionR Documentation

Data on abortions among HIV-positive women

Description

Get input data on the number of pregnancies among HIV-positive women terminated by abortion

Usage

dp.inputs.hiv.abortion(
  dp.raw,
  direction = "wide",
  first.year = NULL,
  final.year = NULL
)

Arguments

dp.raw

DemProj module data in raw format, as returned by read.raw.dp()

direction

Request "wide" (default) or "long" format data.

first.year

First year of the projection. If first.year=NULL, it will be filled in using dp.inputs.first.year()

final.year

Final year of the projection. If final.year=NULL, it will be filled in using dp.inputs.final.year()

Value

A data frame.

Details

Abortion data can be entered in Spectrum as numbers or percentages of HIV-positive women. These units can vary from year to year. When direction="wide", the return value includes separate rows numbers and percentages. When direction="long", the data frame will include one row per year with the unit indicated.


rlglaubius/SpectrumUtils documentation built on Dec. 20, 2024, 7:31 a.m.