generate.site.tsd: Generate the timed sampling distributions from real data.

generate.site.tsdR Documentation

Generate the timed sampling distributions from real data.

Description

Will also set the patients per unit time.

Usage

generate.site.tsd(
  this.site.dt,
  n.sampling.period,
  outcome.col.name,
  sampling.period.out.start,
  sampling.period.out.length,
  values = 0:89,
  smooth.func = smooth.daoh,
  site = NULL
)

Arguments

this.site.dt

The data as a data.table, with time and outcome columns.

n.sampling.period

How many periods should the distribution be divided into?

outcome.col.name

Name of outcome column.

sampling.period.out.start

Time to start the timed sampling dist

sampling.period.out.length

Length of each period in timed sampling dist

values

Values that timed sampling dist can take.

smooth.func

How to smooth the distribution.

site

The SW.Site object to set by reference

Value

The timed sampling distribution (note however that it is set in the site by reference if site is not NULL)


mattmoo/daohtools documentation built on Feb. 5, 2023, 5:38 a.m.