Learn R Programming

copBasic (version 2.0.1)

copBasic.fitpara: A Single or Multi-Parameter Optimization Engine (Beta Version)

Description

An example of a general implementation of a parameter optimization scheme using core features of the copBasic package. Because of the general complexity of the objectives for this function, the interface shown here is considered a beta version and nomenclature is subject to dramatic changes in the future.

Usage

copBasic.fitpara.beta(uv=NULL, popstat=NULL, statf=NULL, cop=NULL,
                      paradim=1, interval=NULL, par.init=NULL, ...)

Arguments

uv
An Rtwo column matrix or data.frame of a sample of nonexceedance probabilities $u$ and $v$;
popstat
The population statistic(s) that will be used if uv is NULL;
statf
A function responsible at the minimum for computation of the theoretical values of the population statistic(s) that the optimization will revolve around; This function, if supporting an as.sample interface (e.g.
cop
A copula function that is passed along to statf though of course the statf function can decide whether to use this argument or not;
paradim
The dimension of the parameters. In reality, the default triggers uni-dimensional root solving using the uniroot() function in Ror otherwise the optim() function in Ris used for multi-dimensional minimization with subtle changes
interval
The interval argument by the same name for the uniroot() function;
par.init
The initial parameter vector for the optim() function; and
...
Additional arguments to pass.

Value

  • A vector of the values for the parameter variable is returned

encoding

utf8

Examples

Run this code
# See the Note section

Run the code above in your browser using DataLab