Prev: Constructs prevalence data

Description Usage Arguments Value

View source: R/data.R

Description

The Prev constructor function returns an R6 Prevalence class which feeds data into sourceR models.

Usage

1
Prev(data, prev, source, time = NULL)

Arguments

data

long-format data.frame containing prevalence data by source and time.

prev

character string giving name of prevalence column in data

source

character string giving name of source column in data

time

optional column denoting times of prevalence observation

Value

A Prev data structure for use in sourceR models


sourceR documentation built on Aug. 31, 2020, 5:06 p.m.

Related to Prev in sourceR...