R/is.constrained.R

Defines functions is.constrained

Documented in is.constrained

###########################################################################
# is.constrained                                                          #
#                                                                         #
# The purpose of the is.constrained function is to provide a logical test #
# of whether or not initial values change as they are passed through the  #
# Model specification function, given data.                               #
###########################################################################

is.constrained <- function(Model, Initial.Values, Data)
     {
     if(missing(Model))
          stop("The Model argument is required.")
     if(missing(Initial.Values))
          stop("The Initial.Values argument is required.")
     if(missing(Data))
          stop("The Data argument is required.")
     Mo <- Model(Initial.Values, Data)
     constr <- Initial.Values != Mo[["parm"]]
     return(constr)
     }

#End

Try the LaplacesDemon package in your browser

Any scripts or data that you put into this service are public.

LaplacesDemon documentation built on July 9, 2021, 5:07 p.m.