Re: [R] Regression performance when using summary() twice

2024-06-21 Thread John Fox
Dear Christian, You're apparently using the glm.nb() function in the MASS package. Your function is peculiar in several respects. For example, you specify the model formula as a character string and then convert it into a formula, but you could just pass the formula to the function -- the

Re: [R] Regression performance when using summary() twice

2024-06-21 Thread Michael Dewey
Dear Christian Without knowing how big your datset is it is hard to be sure but confint() can take some time. Have you thought of calling summary once summ <- summary(model) and then replace all subsequent calls to summary with summ Michael On 21/06/2024 15:38, c.bu...@posteo.jp wrote:

[R] Regression performance when using summary() twice

2024-06-21 Thread c . buhtz
Hello, I am not a regular R user but coming from Python. But I use R for several special task. Doing a regression analysis does cost some compute time. But I wonder when this big time consuming algorithm is executed and if it is done twice in my sepcial case. It seems that calling "glm()"