Generalized least squares (GLS) is an estimation method when errors are heteroscedastic or correlated in linear regression models.

learn more… | top users | synonyms

0
votes
0answers
19 views

Pseudo R-Squared for gls function in Stata

I'm doing bachelor thesis finding "impact of Working Capital Management on profitability". This is the first time i deal with software like stata and many things really made me confused. After do ...
0
votes
0answers
16 views

strange coeficient estimates in GLS with ranked variables

Somebody could explain me why the estimated coefficients of a multiple regression through GLS seem not to pass through the majority of observations? Here is a example: ...
1
vote
0answers
22 views

GLS, heteroskedasticity and Ridge Regression/Lasso

I am hoping to use a regularised regression technique, using cross validation, to fit a linear model to a set of predictors which have some highly correlated variables. However, I also know (highly ...
0
votes
0answers
36 views

Correction of variance structure in gls after selection of the fixed effects using R

I'm fitting a gls following these steps: I select the random effect holding the fixed part unchanged. I.e. I try different variance and correlation structures and random effect. Once I find my ...
1
vote
0answers
18 views

How to convert 3 factor variables to fewer variables for gls() in R

I've got a dataset with 3 factor variables with only one interaction. Y is the response and A,...
0
votes
0answers
31 views

Suitable data transformation in multiple GLS regression of raw variables against PCs

Im trying to make a multiple regresion in which the dependent variable and one of the factors were originally positive variables but were centered and scaled for easire interpretation of effect sizes. ...
2
votes
1answer
113 views

In general, would you always prefer feasible GLS to OLS?

I know that GLS estimators only have exact distributions asymptotically, so the efficiency gains in finite samples are not all that clear. But otherwise, I'm struggling on how to attack this ...
0
votes
0answers
45 views

Multiple comparison in the unequal variance case

I have found procedures such as Tamhanes T2, Dunnets T3 and the Games & Howell procedure that deal with unequal variances in the one-way model. However, I have a Randomized complete block design, ...
0
votes
0answers
44 views

Regression Puzzle GLS var/covar matrix of B given summary statistics

There is a problem posted back in 2009 that I found that has me puzzled. I believe the estimates are from a generalized linear regression because after some thought it seems $X'X$ is impossible to ...
0
votes
0answers
36 views

Phylogenetic GLS with categorical response variable

I want to perform phylogenetic comparative analysis on a multilevel (3 level) categorical response variable, preferentially in R. Does anyone know how to do that or if there is a way to do at least? ...
0
votes
0answers
65 views

Non-significant variables in the best model

I am trying to to run model selection on a large dataset (>500 samples and > 50 vars). I ran GLS (using a self written script for selecting models based on AICc), but the problem is that the best GLS ...
0
votes
1answer
66 views

Variance structure with multiple covariates in GLS

I am building a GLS model following protocol in "Zuur, 2009. Mixed effects models..." on p.90. I have 5 continuous predictors. VarConstPower variance structure works best for me. At first the fixed ...
0
votes
1answer
106 views

Comparing multiple gls' objects using anova.gls

I got a warning message when I was trying to do anova for two nlme::gls objects. Here is an example: ...
0
votes
0answers
145 views

Omitted dummy variable in panel gls?

In Stata, I have panel data for the years 2008-2012, across 7 firms. I assign a value corresponding to id for all firms. (id ...
2
votes
0answers
108 views

GLS regression versus linear mixed models in R

I am looking for papers in the management area that discuss more on the use of linear mixed models in R. Yet all I am getting the results where most, if not all, use GLS regression technique. Would ...
0
votes
0answers
84 views

Interpretating negative GLS coefficients (seasonality removed)

I fit a multiple GLS model with time series as a response and explanatory variables. I previously removed the seasonality and trends by using ...
1
vote
0answers
149 views

Using GLS and weights to solve heterogeneity of variances?

I’m fairly new to scientific significance testing and getting into the topic more and more. I have a multifactorial dataset with Respiration rate as response variable and Temperature and CO2 partial ...
0
votes
1answer
90 views

pseudo Anova Table for a GLS regression

I fit a couple of GLS models, using the nlme pakage (gls() function), and I would like to obtain the pseudo ANOVA table as ...
2
votes
2answers
410 views

Detrending & cross-correlation function

I am looking for some help with my time-series data. What is the best method of detrending/transformation of these two variables, so I do not violate assumptions of stationarity when applying a cross ...
1
vote
0answers
186 views

Fit Linear Model Using Generalized Least Squares with Unknown Covariance Matrix

I want to fit a linear model of $y$ on $x$ with respect to a grouping factor and with respect to a covariance structure for the dependent variable within groups. I have a dataset similar to the ...
1
vote
2answers
539 views

Why do I get same results for OLS and GLS in R?

When I run this code: ...
1
vote
1answer
818 views

Comparing GLS models with different fixed variables using AIC: REML or ML?

I am using gls in nlme. My response variable is spatial so I am using gls with correlation structure. I am determining which structure to use based on Zuur 2009, comparing AIC scores of models with ...
1
vote
1answer
932 views

How to calculate the regression variance for a GLS model?

I need to calculate the regression variance ($\sigma^2$) in order to estimate both the confidence intervals and the prediction intervals in a gls regression analysis. For the analysis, the covariance ...
1
vote
0answers
173 views

Variance associated with factors in GLS (nlme)

First time posting here, so thank you ahead of time for your help. I'd like to estimate the variances associated with two factors in a relatively simple, but unbalanced GLS model, and I am unsure how ...
0
votes
0answers
217 views

Generalized least squares with insignificant predictor variable

Suppose I have fitted an standard linear regression mode $Y=\beta_0+\beta_1X_1+\beta_2X_2+\beta_3X_3+\epsilon$. Based on the ACF plot or PACF plot of the residuals for this regreesion model, I found ...
5
votes
1answer
632 views

How to specify in r spatial covariance structure similar to SAS sp(pow) in a marginal model?

I'm currently translating existing code from SAS to R. I'm working on longitudinal data (CD4 count over time). I have the following SAS code : ...
2
votes
1answer
522 views

Robust standard error in generalized least squares regression

Suppose we have a correlated outcome $\mathbf{y}$ and a bunch of predictors $\mathbf{X}$. For some reason, we know the variance/covariance matrix of the error term $(\epsilon)$, say $\mathbf{V}$. In ...
0
votes
1answer
300 views

Performing a GLS cross-sectional regression using R

Is there a function in R that could perform GLS cross-sectional regression for multiple cases all at once? For example, when regressing stock returns over beta for 100 stocks over a 10-year time ...
4
votes
2answers
715 views

How to interpret these custom contrasts?

I am doing a one way ANOVA (per species) with custom contrasts. ...
2
votes
0answers
316 views

Evaluation of a GLS fit

My first post in this useful community. Ive been trying to use GLS methods in non-linear mixed effects models and have found this post, Prediction with GLS extremely informative and helpful. Some of ...
-1
votes
1answer
313 views

proof FGLS asymptotically efficient

Prove that FGLS is asymptotically efficient. Does one have to use Cramer Rao to do this?
0
votes
1answer
802 views

Can I use generalised least squares with a binomial distribution and a nested structure?

I'm trying to fit linear models to my data in R. I need to use a generalised least squares method as I have heterogeneity of variance in one of my variables. I was planning to use varIdent, as the ...
6
votes
1answer
223 views

Inference in linear model with conditional heteroskedasticity

Suppose I observe independent variable vectors $\vec{x}$ and $\vec{z}$ and dependent variable $y$. I would like to fit a model of the form: $$y = \vec{x}^{\top}\vec{\beta_1} + \sigma ...
3
votes
2answers
804 views

Prediction with GLS

Let's say I build a Generalized Least Squares model. I follow the standard procedure and first estimate a LM model. Then I create an error-response covariance matrix based on the residuals of this ...
2
votes
1answer
627 views

How to get equivalent ANOVA in R for a model with and without a random effect?

My question is: Is there a way to either force Anova() to somehow analyze gls objects (which internally are almost identical ...
5
votes
1answer
2k views

Fitting a generalized least squares model with correlated data; use ML or REML?

Reading the Linear Mixed Model (LMM) literature I am aware that fitting a model using REML provides better estimates of variance parameters than fitting via ML. However, we should not compare nested ...
2
votes
2answers
427 views

Is there a GLS estimator that has lower variance than OLS for sum of parameters in linear model under Gauss-Markov conditions?

I have a model $$Y=\beta_0 + \beta_1 x_1 + \beta_2x_2 +\epsilon$$ I would like the minimum variance unbiased estimate of $\gamma=\beta_1 + \beta_2$. Assuming the Gauss Markov conditions hold, but ...
0
votes
0answers
369 views

Estimation of time series regression using GLS

I am trying to estimate time series model using gls method. The data is monthly from sep 1997 to april 2011 First I estimate the model and know that the erorr are IMA(1,1). For that I use the code ...
8
votes
1answer
404 views

Difference between GLS and SUR

I've been reading some about Generalized Least Squares (GLS) and trying to tie it back to my basic econometric background. I recall in grad school using Seemingly Unrelated Regression (SUR) which ...