checkPar(value = c(1, 2), parN = 2L, parNames = c("theta", "sigma2"),
default = 1.0)
checkPar(value = NULL, parN = 2L, parNames = c("theta", "sigma2"),
default = 1.0)
checkPar(value = c("sigma2" = 100, "theta" = 1),
parN = 2L, parNames = c("theta", "sigma2"),
default = 1.0)
Run the code above in your browser using DataLab