Question about lm.gls

Hi,

Is there a way to extract standard errors and pvalues on estimated coefficients in lm.gls?

I am working on a external server and cannot get gls running there. I get a message saying that the required packages (I tried nmle, gls) are not available for R 3.5.1.

fit <- lm.gls(...) # something
str(fit)           # show the available output

Since I do not see standard errors or pvalues in str(fit) does that mean they are unavailable?
I am working on a external server and cannot get gls running there. I get a message saying that the packages (I tried nmle, gls) are not available for R 3.5.1.

Paste a reprex and I'll look

1 Like

Is there a reason why you're using lm.gls() instead of gls() in the nlme package?

I'm not on my computer, so I apologize for the lack of reprex, but,

set.seed(123)
y <- runif(5)
x <- 1:5
fit <- nlme::gls(y ~ x)
fit_sum <- summary(fit)
fit_sum[["tTable"]]

You should be able to extract what you need from there.

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.