Learn R Programming

SPOT (version 2.5.18)

getNatDesignFromCoded: Get natural parameter values from coded +-1 representation

Description

For given lower and upper bounds, a and b, respectively, coded input values are mapped to their natural values

Usage

getNatDesignFromCoded(x, a, b)

Arguments

x

(n,m)-dim matrix of coded values, i.e., lower values are coded as -1, upper values as +1.

a

m-dim vector of lower bounds (natural values)

b

m-dim vector of upper bounds (natural values)

Examples

Run this code
# NOT RUN {
# Note: donttest is used, because platform x86_64-w64-mingw32 (64-bit) 
# does not provide the package babsim.hospital.
# }
# NOT RUN {
require(babsim.hospital)
x <- matrix(rep(-1,29),1,)
bounds <- getBounds()
lower <- bounds$lower
upper <- bounds$upper
getNatDesignFromCoded(x, a = lower, b=upper)
# }

Run the code above in your browser using DataLab