Displaying 20 results from an estimated 3000 matches similar to: "ols/gls or systemfit (OLS, WLS, SUR) give identical results"
2006 Jul 19
1
WLS ins systemfit question
How does one specify the weights for WLS in the
systemfit command ?
That is, there is a weight option in lm(), but there
doesn't seem to be weight option for systemfit("WLS")
Thanks!
2004 Nov 29
3
systemfit - SUR
Hello to everyone,
I have 2 problems and would be very pleased if anyone can help me:
1) When I use the package "systemfit" for SUR regressions, I get two
different variance-covariance matrices when I firstly do the SUR
regression ("The covariance matrix of the residuals used for
estimation") and secondly do the OLS regressions. In the manual for
"systemfit" on page
2010 Jun 24
1
Question on WLS (gls vs lm)
Hi all,
I understand that gls() uses generalized least squares, but I thought
that maybe optimum weights from gls might be used as weights in lm (as
shown below), but apparently this is not the case. See:
library(nlme)
f1 <- gls(Petal.Width ~ Species / Petal.Length, data = iris, weights
= varIdent(form = ~ 1 | Species))
aa <- attributes(summary(f1)$modelStruct$varStruct)$weights
f2 <-
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
A copy of this question can be found on Cross Validated:
https://stats.stackexchange.com/questions/645362
I am estimating a system of seemingly unrelated regressions (SUR) in R.
Each of the equations has one unique regressor and one common regressor. I
am using `gmm::sysGmm` and am experimenting with different weighting
matrices. I get the same results (point estimates, standard errors and
2006 Mar 21
0
New version of 'systemfit'
Dear R users,
The authors of the systemfit package have released a new version of this
package with substantial enhancements.
The systemfit package contains functions for fitting simultaneous systems of
linear equations using Ordinary Least Squares (OLS), Weighted Least Squares
(WLS), Seemingly Unrelated Regressions (SUR), Two-Stage Least Squares (2SLS),
Weighted Two-Stage Least Squares
2006 Mar 21
0
New version of 'systemfit'
Dear R users,
The authors of the systemfit package have released a new version of this
package with substantial enhancements.
The systemfit package contains functions for fitting simultaneous systems of
linear equations using Ordinary Least Squares (OLS), Weighted Least Squares
(WLS), Seemingly Unrelated Regressions (SUR), Two-Stage Least Squares (2SLS),
Weighted Two-Stage Least Squares
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
Generally speaking, this sort of detailed statistical question about a
speccial package in R does not get a reply on this general R
programming help list. Instead, I suggest you either email the
maintainer (found by ?maintainer) or ask a question on a relevant R
task view, such as
https://cran.r-project.org/web/views/Econometrics.html . (or any other
that you judge to be more appropriate).
2012 Dec 09
1
Error message "cs_lu(A) failed: near-singular A (or out of memory)"
Hi there everyone,
I have the following model (this is naturally a simplified version just for
showing my problem, in case you're wondering this is a translog cost
function with the associated cost share equations):
C ~ á + â1 log X + â2 log Y + ã1 log Z + ã2 log XX
C1 ~ â1 + â2 log YY + ã1 log ZZ
Then I have some restrictions on the coefficients, namely that the sum of â
equal 1 and the
2018 May 10
0
Using Tobit and SUR in Systemfit in R
Dear Community,
does anybody have an idea on how to estimate a system of three seemingly
unrelated regressions, two of which being TOBIT and one OLS?
Background: I am currently estimating a translog cost function and two
corresponding cost share equations using systemfit and the seemingly
unrelated regression ("SUR") specification.
However, I consider it more appropriate to estimate
2005 May 25
3
Problem with systemfit 0.7-3 and transformed variables
The 'systemfit' function in systemfit 0.7-3 CRAN package seems to have a
problem with formulas that contain transformed (eg. log) variables. If I
have my data in a data frame, apparently systemfit doesn't "pass" the
information of where the variables should be taken to the transforming function.
I'm not entirely sure if this is a bug or just a limitation, I was just
2011 Jul 14
1
WLS regression, lm() with weights as a matrix
Dear All,
I've been trying to run a Weighted Least Squares (WLS) regression:
Dependent variables: a 60*200 matrix (*Rit*) with 200 companies and 60 dates
for each company
Independent variables: a 60*4 matrix (*Ft*) with 4 factors and 60 dates for
each factor
Weights: a 60*200 matrix (*Wit*) with weights for 200 companies and 60 dates
for each company
The WLS regression I would like to run
2007 Apr 05
2
about systemfit
Hello. I am still a newbie in R. Excuse me if I am asking something obvious. My efforts to get an answer through browsing the mailing archives failed. I want to perform an augmented Dickey-Fuller test and to obtain AIC and BIC and to be able to impose some linear restrictions on the ADF regression so as to decide the correct order of autoregression. However I could find no obvious way to impose
2008 Jun 09
1
Systemfit (was RE: How to force two regression coefficients to be equal but opposite in sign?)
Thank you, Greg, and also to Scott Ellison, who replied privately. I am
in the process of trying out both suggestions.
After I sent my initial message, I came across the Systemfit package,
which allows specification of constraints on parameters. In theory,
this should solve my problem perfectly. However, I was not able to get
it to work with my data, as every attempt yielded the following
2003 Jul 16
2
Weighted SUR, 2SLS regressions
Is there an option for running SUR and 2SLS regressions with weighting
(I am analysing mortality in towns, hence want to weight by population size)
Many thanks
Jon Anson
--
Yonathan (Jon) Anson
Department of Social Work
Ben Gurion University of the Negev
84105 Be'er Sheva, Israel.
Tel: +972 8 647 93 14(w) +972 8 6489286 (h) 067 233279 (m)
Fax: +972 8 647 29 33
2004 Mar 16
2
R CMD check warning on predict.systemfit
Hi,
I added a new function "predict.systemfit" to our package "systemfit" to make
it closer to other packages (e.g. lm). Now "R CMD check" complains that the
generic function "predict" has only the argument "object", while our function
"predict.systemfit" has more arguments. However, the function "predict.lm"
has also more
2010 Sep 03
1
How to use lm() output for systemfit() 'Seemingly unrelated regression'
I am having problem using output of lm() function for further analysing using
systemfit package.
Basicaly, the problem s following - I generate several formulas using lm()
> fo1 <- lm(r98[,2] ~ f98[,1] + f98[,2] + ... + f98[,43])
> fo2 <- lm(r98[,1] ~ f98[,1] + f98[,2] + ... + f98[,43])
and than I want to estimate a general model using package systemfit.
> fitsur <-
2012 Aug 14
1
SYSTEMFIT HELP
Dear Users,
I want to know whether systemfit can solve simultaneous equations using
panel data.
Regards
Arunima
[[alternative HTML version deleted]]
2012 Nov 13
1
About systemfit package
Dear friends,
I have written the following lines in R console wich already exist in pdf
file systemfit:
data( "GrunfeldGreene" )
library( "plm" )
GGPanel <- plm.data( GrunfeldGreene, c( "firm", "year" ) )
greeneSur <- systemfit( invest ~ value + capital, method = "SUR",
+ data = GGPanel )
greenSur
I have obtained the following incomplete
2007 Feb 19
1
Urgent: How to obtain the Consistent Standard Errors after apply 2SLS through tsls() from sem or systemfit("2SLS") without this error message !!!!!!!!!!!!!
Hi,
I am trying to obtain the heteroskedasticity consitent standard errors
(HCSE) after apply 2SLS. I obtain 2SLS through tsls from package sem or
systemfit:
#### tsls ####
library (sem)
Reg2SLS <-tsls(LnP~Sc+Ag+Ag2+Var+R+D,~I2+Ag+Ag2+Var+R+D)
summary (Reg2SLS)
#### systemfit ####
library (systemfit)
RS <- LnP~Sc+Ag+Ag2+Var+R+D
Inst <- ~I2+Ag+Ag2+Var+R+D
labels
2012 Nov 16
2
R-Square in WLS
Hi,
I am fitting a weighted least square regression and trying to compute
SSE,SST and SSReg but I am not getting SST = SSReg + SSE and I dont know
what I am coding wrong. Can you help please?
xnam <-colnames(X) # colnames Design Matrix
fmla1 <- as.formula(paste("Y ~",paste(xnam, collapse=