Damokun wrote:
>
> Dear all,
>
> I am trying to optimize a logistic function using optim, inside the
> following functions:
> #Estimating a and b from thetas and outcomes by ML
>
> IRT.estimate.abFromThetaX <- function(t, X, inits, lw=c(-Inf,-Inf),
> up=rep(Inf,2)){
> optRes <- optim(inits
As the error message says, the values of your function must be finite in
order to run the algorithm.
Some part of your loop is passing arguments (inits maybe... you only tried
(0,0) in the CLI example) that cause IRT.llZetaLambdaCorrNan to be
infinite.
--
Jon
2 matches
Mail list logo