Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

uniform

Assume A Multivariate Uniform Prior Distribution for The Model Parameters


Description

Creates independent uniform prior distributions for the unknown model parameters as an object of class cprior.

Usage

uniform(lower, upper)

Arguments

lower

A vector of lower bounds for the model parameters.

upper

A vector of upper bounds for the model parameters.

Value

An object of class cprior that is a list with the following components:

  • fn: prior distribution as an R function with argument param that is the vector of the unknown parameters. See below.

  • npar: Number of unknown parameters and is equal to the length of param.

  • lower: Argument lower. It has the same length as param.

  • upper: Argument lower. It has the same length as param.

The list will be passed to the argument prior of the function bayes. The order of the argument param in fn has the same order as the argument parvars when the model is specified by a formula. Otherwise, it is equal to the argument param in the function fimfunc.

Note

The order of the argument param in fn has the same order as the argument parvars when the model is specified by a formula. Otherwise, it is the same as the argument param in the function fimfunc.

See Also

Examples

uniform(lower =  c(-3, .1), upper = c(3, 2))

ICAOD

Optimal Designs for Nonlinear Statistical Models by Imperialist Competitive Algorithm (ICA)

v1.0.1
GPL (>= 2)
Authors
Ehsan Masoudi [aut, cre], Heinz Holling [aut], Weng Kee Wong [aut], Seongho Kim [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.