generate.timed.sampling.dist: Generate a timed.sampling.dist object from an input...

View source: R/simulate.R

generate.timed.sampling.distR Documentation

Generate a timed.sampling.dist object from an input distribution (with timings obvs)

Description

Generate a timed.sampling.dist object from an input distribution (with timings obvs)

Usage

generate.timed.sampling.dist(
  input.dt,
  outcome.col.name,
  n.sampling.period = 1,
  sampling.period.in.start = NULL,
  sampling.period.in.length = NULL,
  sampling.period.out.start = NULL,
  sampling.period.out.length = NULL,
  smooth.func = smooth.daoh,
  values = NULL
)

Arguments

input.dt

The (data.table) input distribution to emulate with outcome and time columns

outcome.col.name

The name of the outcome column

n.sampling.period

How many sampling periods?

sampling.period.in.start

At what time should the sampling start? Should be integer.

sampling.period.in.length

How long should each time period be in the output? Should be integer.

sampling.period.out.start

How long should each period be in the output? Should be integer.

smooth.func

What function should be used for smoothing? Mainly made for DAOH, so that's default. Should be integer.

values

The value that can the sampling distribution can take (default min(input.dist):max(input.dist), which will fail if not integer input)

Value

A Timed.Sampling.Dist object


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