param.distributed: Define a parameter with a known probability distribution

Description Usage Arguments Value See Also Examples

View source: R/params.R

Description

Define a parameter with a known probability distribution

Usage

1
2
3
4
5
6
7
8
9
param.distributed(type = c("norm", "beta", "binom", "cauchy", "chisq", "exp",
  "f", "gamma", "geom", "hyper", "lnorm", "logis", "multinom", "nbinom", "pois",
  "signrank", "t", "unif", "weibull", "wilcox", "birthday", "tukey"),
  args = list(), initial = NULL, ...)

param.distr.int(type = c("norm", "beta", "binom", "cauchy", "chisq", "exp",
  "f", "gamma", "geom", "hyper", "lnorm", "logis", "multinom", "nbinom", "pois",
  "signrank", "t", "unif", "weibull", "wilcox", "birthday", "tukey"),
  args = list(), initial = NULL, ...)

Arguments

type

The type of probability distrubtion. This is used to call the functions 'rTYPE' and 'dTYPE' (e.g, rnorm and dnorm), which are used by various optimisation algorithms.

args

A named list of arguments to pass to rTYPE and dTYPE (e.g., mean, sd).

initial

The initial value or NULL.

...

Additional arguments to be used in optimisation methods.

Value

An object of type 'param.distributed'

See Also

param.normal, param.real

Examples

1
2
3
param.distributed("norm", args=list(mean=12, sd=2))
# is the same as
param.normal(mean=12, sd=2)

paleolimbot/easyoptim documentation built on May 24, 2019, 6:12 p.m.