Displaying 20 results from an estimated 8000 matches similar to: "Problem with predict in systemfit"
2007 May 23
0
Changing sequential regression code to call systemfit
I use code ( actually its code from vars package and its directly below
) to do a sequence of lm calls and the data I use from the matrix
depends on restrictions.
for(i in 1:K){
datares <- datasub[, which(x$restrictions[i, ] == 1),drop=FALSE]
y <- yendog[, i]
lmres <- lm(y ~ -1 + ., data=datares)
# x$varresult[[i]] <- lmres
# x$resid[, i] <-
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 <-
2011 Jun 28
2
How do I output all the R-squares of an SUR? summary(fitSUR$eq[[1:4]])$r.squared does not work
Greetings R Users,
I have a system of equations for which I would like to output all the
R-squares. Assume there are four equations in my system, the only way I
found to output all the R-squares is by calling them out one by one as this:
summary(fitSUR$eq[[1]])$r.squared
summary(fitSUR$eq[[2]])$r.squared
summary(fitSUR$eq[[3]])$r.squared
summary(fitSUR$eq[[4]])$r.squared
But isn't there a
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
2009 Aug 18
3
R formula
Hi
I was trying to estimate simultaneous equation system in R using systemfit.
I used the following commands
>library(systemfit)
> data(Kmenta)
> attach(Kmenta)
>eqDemand<-consump~price+income
> eqSupply<-consump~price+farmprice+trend
> fitsur<-systemfit("SUR",list(demand=eqDemand, supply=eqSupply))
and got the following error messege
Error in
2007 Dec 18
0
New version of systemfit (not backward compatible)
Dear R users,
the systemfit package contains functions for fitting systems of simultaneous
equations by various estimation methods (e.g. OLS, SUR, 2SLS, 3SLS).
Currently version 0.8 of systemfit is available on CRAN. However, shortly we
will upload version 1.0, which is NOT BACKWARD COMPATIBLE. The changes that
broke backward compatibility were necessary to make systemfit() more similar
to
2007 Dec 18
0
New version of systemfit (not backward compatible)
Dear R users,
the systemfit package contains functions for fitting systems of simultaneous
equations by various estimation methods (e.g. OLS, SUR, 2SLS, 3SLS).
Currently version 0.8 of systemfit is available on CRAN. However, shortly we
will upload version 1.0, which is NOT BACKWARD COMPATIBLE. The changes that
broke backward compatibility were necessary to make systemfit() more similar
to
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
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
2007 May 23
1
I made some progress on my previous "systemfit" question but still not quite there
Surprisingly, I played around with some test code and below actually
creates equations that look correct.
tempmat<-matrix(10,nrow=6,ncol=6)
restrictmat<-diag(6)
colnames(tempmat)<-c("AUD.l1","CHF.l1","CAD.l1","GBP.l1","EUR.l1","JPY.l
1")
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
2009 Oct 20
1
Systemfit package
Dear Arne Henningsen,
I send you this message because I have question with regard to systemfit package. I hope you answer to my request.
I estimated a system of equation bu using SUR method. The function summary(xx) gives me summary of estimated equation system. However, this function does not give my the value of the durbin watson statistic for each one of my equations (to chek for serial
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
2007 Aug 16
0
summarising systemfit with saveMemory
Hi all -
I'm on R 2.5.1 for XP.
in the systemfit package, the summary is set to print the McElroy's
measure of fit unless it's NULL. When the option saveMemory = TRUE,
the McElroy isn't included, instead it defaults to NA. Thus I am
unable to use summary.systemfit.
> library(systemfit)
> example(systemfit)
> surfit2 <-
2006 Jul 13
1
ols/gls or systemfit (OLS, WLS, SUR) give identical results
I might be sorry for asking this question :-)
I have two equations and I tried to estimate them individually with "lm" and "gls", and then in a system (using systemfit) with "OLS", "WLS" and "SUR". Quite surprisingly (for myself at least) the results are identical to the last digit.
Could someone (please!) give a hint as to what am I
2009 May 29
1
Error messages/systemfit package
Hello !
I’m trying to estimate a system of equation (demand and supply) using the systemfit package. My program is:
library(systemfit)
demand <- tsyud ~ tsyud1 + tsucp + tspo + tssn
supply <- tscn ~ tsyn + tsqn + tsksn + tsucp
system <- list(demand=eqdemand, learning = eqsupply)
labels <- list(demand="eqdemand", learning="eqsupply")
inst <- ~ tsupp1 + tsupp2
2009 Jul 23
2
SystemFit
Hi,
I have two products which are substitudes. I try to fix a system as below to
mydata.
Demand1 = A1 -B1*Price1 + C1*Price2
Demand2 = A2 +B2*Price1 - C2*Price2
I would expect C1 & B2 to be symmetric, If they are truly substitude. How
can I enforce this symmetry when creating a system of equations via
SystemFit ?
--
View this message in context:
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
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