Dear R Users,
I incorporated the suggestions given to me, which solved the problem
of the program ending. However,
once an error occurs, and the value NA is assigned, the program does
not run correctly
after this point. All values assigned after this point are NA.
Here is my function.
getLRTp <-
Neither of reduced_model not full_model will ever be NULL. If this
fails, they inherit from class "try-error". See ?try.
So you want
inherits(reduced_model, "try-error") || inherits(full_model, "try-error")
On Thu, 14 Feb 2008, Juliet Hannah wrote:
> Dear R Users,
>
> I have the following g
Dear R Users,
I have the following glm, which I am running several times in a loop
(I am not including the full code):
reduced_model <- NULL;
full_model <- NULL;
reduced_model <- try(glm.fit(X4,n,family=poisson(link="log")))
full_model <- try(glm.fit(X5,n,family=poisson(link="log")));
On some oc
3 matches
Mail list logo