Learn R Programming

pksensi (version 1.0.0)

rfast99: Extended Fourier Amplitude Sensitivity Test with Random Phase Shift

Description

rfast99 is used to create the sequances for each parameter. It is based on the fast99 function in sensitivity package.

Usage

rfast99(params, n, M = 4, omega = NULL, q = NULL, q.arg = NULL,
  replicate = 1, conf = 0.95)

Arguments

params

an integer for the giving number of parameters, or a vector of character strings giving their names.

n

an integer for the sampling number.

M

an integer specifying the interference parameter. The default is 4.

omega

a vector giving the set of frequencies.

q

a vector of quantile functions names corresponding to wanted parameters distributions.

q.arg

a list of quantile functions parameters.

replicate

an integer to define the number of replication. The default is set to 1 turn off the replication.

conf

the confidence level for replication confidence intervals. The default is 0.95.

Value

The returned parameter value will be stored in an array with c(model evaluation, replication, parameters).

References

A. Saltelli, S. Tarantola and K. Chan, 1999, A quantitative, model independent method for global sensitivity analysis of model output, Technometrics, 41, 39-56.

R. I. Cukier, H. B. Levine and K. E. Schuler, 1978, Nonlinear sensitivity analysis of multiparameter model systems. J. Comput. Phys., 26, 1<U+2013>42.

Examples

Run this code
# NOT RUN {
# Generate the parameter matrix with 20 replications
q <- "qunif"
q.arg <- list(min = 0, max = 1)

set.seed(1234)
x <- rfast99(params = 3, n = 100, replicate = 20, q = q, q.arg = q.arg)
dim(x$a) # the array of c(model evaluation, replication, parameters).

# }
# NOT RUN {
save(x, file = "input_parameters.rda")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab