To put it simply, I want to estimate a random effects model with censored data.
I am trying to use the pldv function to do this.
However, I have not been able to implement double threshold censoring.
Every time I try to use right censorship, I'm faced with:
"Error in maxOptim(fn = fn, grad = grad, hess = hess, start = start, method = "BFGS", :
NA in initial gradient"
Here is a toy example to replicate the problems:
(it more or less corresponds to the lab experiment pilot data I tried to use)
Hi,
To put it simply, I want to estimate a random effects model with censored data. I am trying to use the pldv function to do this.
However, I have not been able to implement double threshold censoring. Every time I try to use right censorship, I'm faced with: "Error in maxOptim(fn = fn, grad = grad, hess = hess, start = start, method = "BFGS", : NA in initial gradient"
Here is a toy example to replicate the problems: (it more or less corresponds to the lab experiment pilot data I tried to use)
Data generation:
One side censorship
Lower treshold
Everything seems to be working fine.
Upper treshold
Which gives an error
Two sides censorship
Same error
Thank you in advance for your help,
Tanguy