datamodel: Draws a random data model given a vector 'data' and its...

Description Usage Arguments Value

Description

Draws a random data model given a vector 'data' and its associated uncertainties, either in the form of 'sigmas' or a set of 'lower.bounds' and 'upper.bounds'. If 'sigmas' is provided, draw from a Gaussian centered on the data. If bounds are provided, draw from a Gaussian truncated at the lower and upper bounds.

Usage

1
2
datamodel(data, sigmas = NULL, n.sigma = 2, lower.bounds = NULL,
  upper.bounds = NULL)

Arguments

data

A vector of data.

sigmas

A vector of 1 sigma uncertainties associated with the data.

n.sigma

How many sigmas should be allowed?

lower.bounds

A vector of lower bounds for the data.

upper.bounds

A vector of upper bounds for the data.

Value

A vector containing the


kahaaga/tstools documentation built on May 24, 2019, 5:01 a.m.