Displaying 20 results from an estimated 2000 matches similar to: "help on package or code for simutaneous equation probit(logit) model"
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
2005 Dec 02
3
masked from package:base?
I am confused by the following description in
http://www.maths.lth.se/help/R/.R/library/systemfit/html/hausman.systemfit.html
what does the "Not run" mean? if we do not load systemfit, how can we run
the following code?
## Not run: library( systemfit )
data( kmenta )
attach( kmenta )
...
I install the package of systemfit, and run the code.
I got the warning:
> library( systemfit
2008 Nov 06
2
How to return individual equation from {aidsEst} in package [micEcon]?
Hi, R core team
I am using the function {aidsEst} in package [micEcon] to do an AIDS
model now. So far, everything is good. But I want to test the auto
correlation and heteroskedasticity of the individual equation from AIDS
demand system. How can I return the individual equation?
PS: serial correlation test is {bgtest} in package [lmtest] and
heteroskedasticity is {bptest} in package
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 <-
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
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
2008 Nov 20
1
Nonlinear restrictions in systemfit
Hey,
I want to implement a structural model with the package systemfit with some
linear and nonlinear constraints.
How to implement linear restrictions is clear.
Does anybody know how to set up nonlinear restrictions in the systemfit
packages.
For example:
beta1 = beta2-(beta4/beta6)
I look forward to your reply
--
View this message in context:
2008 Sep 22
1
Help for SUR model
I am an R beginner and trying to run a SUR model in R framework.
subset(esasp500, Obs <=449 & Obs>=197, select = -Date) ->ev13sub
c(Obs>=397) & c(Obs<=399) ->d13
c(Obs>=400) & c(Obs<=449) ->f13
SP500*f13 ->SP500f13
BBC~SP500+d13+SP500f13 ->sur132
BOW~SP500+d13+SP500f13 ->sur133
CSK~SP500+d13+SP500f13 ->sur134
2011 Nov 15
1
Estimating model parameters for system of equations
Hi all,
I'm trying to estimate model parameters in R for a pretty simple system of
equations, but I'm having trouble. Here is the system of equations (all
derivatives):
eqAlgae <- (u_Amax * C_A) * (1 - (Q_Amin / Q_A))
eqQuota <- (p_max * R_V) / (K_p + R_V) - ((Q_A-Q_Amin)*u_Amax)
eqResource <- -C_A * (p_max * R_V) / (K_p + R_V)
eqSystem <- list(C_A = eqAlgae, Q_A = eqQuota,
2011 Mar 10
2
R beginner - Error in as.vector(x, mode)
Hi everyone,
I am new to R and keep getting the message
Error in as.vector(x, mode)
while trying to run nlsystemfit.
Below is my exact code. The data is in Stata format because I only
recently swapped to R and am trying to compare results from Stata to
make sure I know what is going on.
I have searched google and read sever R-help articles with this error.
They all say the problem is to do
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
2012 Nov 20
1
Coefficient of determination for non-linear equations system (nlsystemfit)
Hello everyone,
I have estimated system of three linear equations with one non-linear
restrictions with nlsystemfit. I was wondering how I can calculate the
R-squared (or some alternative coefficient of determination) for the
whole system. This is automatically given by linear systemfit but not by
nlsystemfit. I can get the values for each of the equations separately,
but apparently not for
2012 Apr 07
1
Systemfit with structural equations and cross equation parameter interaction
Hi there,
I want to estimate simultaneous equation model with panel data. The model looks as follows
Y1=a0+a1*X1+a2*X2
Y2=b0+b1*X2+b2*X1
X1=Z1-(Y1/a1)
X2=Z2-(Y2/b1)
I
In this model Y1, Y2, X1 and X2 are endogenous variables; Z1, Z2 are exogenous variables and a0, a1, a2, b0, b1 and b2 are parameters. Could any one please help me how to estimate this model in R. Thanking you in anticipation
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:
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
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]]
2008 Oct 10
2
linear expenditure model
Hi,
I would like to estimate a linear expendire with Systemfit package.
(method: "SUR")
As someone could show me how to define the equations?
Thanks.
--
Think before you print !
**********************************************************************
Disclaimer: This e-mail may contain confidential informa...{{dropped:9}}
2012 Oct 17
1
extracting and restricting coefficients
Hi
I want to fit two equations simultaneously
EQ1<-Y1~X1+X2
EQ2<-Y2~X1+X2
eqsystem<-list(Y1HAT=EQ1,Y2HAT=EQ2)
fitols<-systemfit(eqsystem,
method="OLS", data=BB)
How do I get coefficients for the first equation? R code
How do I restrict coefficient of X2 in the first equation (say , restrict it to less than zero). R code
Your help is
appreciated.
Dereje
[[alternative
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
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