emptyModelList: Create An Empty Model List

View source: R/DiscrimOD.R

emptyModelListR Documentation

Create An Empty Model List

Description

Run emptyModelList() for instruction of model settings.

Run emptyModelList() for instruction of model settings.

Usage

emptyModelList(N_model = 2)

emptyModelList(N_model = 2)

Arguments

N_model

Integer. The numebr of competing models including the true model. The default value is 2.

Value

An List.

  • True a list of informaiton of true model.

    • model the model formula. Input the R function or xPtr function pointer generated by cxxfunction in the inline package.

    • para the nominal values of parameeters. Input a vector of parameter values.

  • Rivalk a vector of grid points on the second dimension of the 2-D design space. For 1_d case, this output can be ignored.

    • model the model formula. Input the R function or xPtr function pointer generated by cxxfunction in the inline package.

    • paraLower the lower bound of teh parameters in the k-th rival model. Input a vector of lower bound values.

    • paraUpper the upper bound of teh parameters in the k-th rival model. Input a vector of upper bound values.

    • paraInit the initial guess of parameters for the LBFGS algorithm. Input a vector of parameter values.

An List.

  • True a list of informaiton of true model.

    • model the model formula. Input the R function or xPtr function pointer generated by cxxfunction in the inline package.

    • para the nominal values of parameeters. Input a vector of parameter values.

  • Rivalk a vector of grid points on the second dimension of the 2-D design space. For 1_d case, this output can be ignored.

    • model the model formula. Input the R function or xPtr function pointer generated by cxxfunction in the inline package.

    • paraLower the lower bound of teh parameters in the k-th rival model. Input a vector of lower bound values.

    • paraUpper the upper bound of teh parameters in the k-th rival model. Input a vector of upper bound values.

    • paraInit the initial guess of parameters for the LBFGS algorithm. Input a vector of parameter values.

Examples

emptyModelList()  # True model and one rival model
emptyModelList(3) # True model and two rival models
emptyModelList(5) # True model and four rival models
emptyModelList()  # True model and one rival model
emptyModelList(3) # True model and two rival models
emptyModelList(5) # True model and four rival models

PingYangChen/DiscrimOD documentation built on June 10, 2025, 11:32 p.m.