search for: unemp

Displaying 19 results from an estimated 19 matches for "unemp".

2012 Oct 22
0
"Vars" package: impulse response function
Hello, I'm using VAR models in R in order to obtain impulse responses of stock market shock on US economy. I have series of quarterly changes in real gdp, S&P 500 and quarterly level of unemployment for 1985 - 2012 period. My series are stationary. So I did all the steps below. However I don't understand what do irf function results mean. These are the cumulative orthogonal responses to sp variable shock but what is the value of this shock? If for example I have to assess the respon...
2012 Nov 29
1
instrumental variables regression using ivreg (AER) or tsls (sem)
...producible example) from that site: # ------ begin R library(AER) library(lmtest) data("CollegeDistance") cd.d<-CollegeDistance simple.ed.1s<- lm(education ~ distance,data=cd.d) cd.d$ed.pred<- predict(simple.ed.1s) simple.ed.2s<- lm(wage ~ urban + gender + ethnicity + unemp + ed.pred , data=cd.d) # ------ end R This yields the following summary: summary(simple.ed.2s) Call: lm(formula = wage ~ urban + gender + ethnicity + unemp + ed.pred, data = cd.d) Residuals: Min 1Q Median 3Q Max -3.1692 -0.8294 0.1502 0.8482 3.9537 Coefficients:...
2012 Oct 10
6
Exporting summary plm results to latex
Dear all, I am trying to export my fixed effect results to Latex. I am using the plm package with the summary function. However, it does not look like apsrtable, stargazer, or any other package can accompany using the plm package. I am interested in a classic table with the coefficient in one row followed by the standard error in paranthesis in the next row and stars by the coefficient to show
2009 Aug 03
1
plm summary error
...ry.plm function (demonstrated with the example from the ?plm documentation). library(plm) data("Produc", package="Ecdat") estimation_method<-"within" estimation_effect<-"individual" zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, index=c("state","year") , method=estimation_method , effect=estimation_effect ) summary(zz) #Error: object of type 'symbol' is not subsettable #But if I run zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, i...
2013 Sep 04
2
Attribute Length Error when Trying plm Regression
Hello, I am trying to run a fixed effects panel regression on data containing 5 columns and 1,494 rows. I read the data in as follows: >drugsXX<-read.csv(file="C:\\Folder\\vX.X\\Drugs\\drugsXX_panel.csv", head=TRUE, sep=",") Verified it read in correctly and had a good data.frame: >dim(drugsXX) [1] 1494 5 >drugs XX produce expected data with correct column
2009 Apr 07
0
summary.plm error
...summary.plm function (demonstrated with the example from the ?plm documentation). library(plm) data("Produc", package="Ecdat") estimation_method<-"within" estimation_effect<-"individual" zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, index=c("state","year") , method=estimation_method , effect=estimation_effect ) summary(zz) Error: object of type 'symbol' is not subsettable But if I run zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, ind...
2013 Sep 09
1
theta parameter - plm package
Hi all, what indicates the parameter theta in the summary of a random effect panel model estimated with the plm function? example: data("Produc", package = "plm") zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp, model="random", data = Produc, index = c("state","year")) summary(zz) Effects: var std.dev share idiosyncratic 0.001454 0.038137 0.175 individual 0.006838 0.082691 0.825 theta: 0.8888 Thanks Alfonso
2013 Nov 06
1
resdiuals of random model estimated by plm function
Hi all, I have estimated a random panel model using plm function. I have a question about the vector of resduals obtained with the object $residuals. example: data("Produc", package = "plm") zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp, model="random", data = Produc, index = c("state","year")) res<-zz$residuals # vector of the residuals. the vector res is the sum of the idyosiyncratic (eit) and individual (ui) component or is only the idyosiyncratic (eit) component? Thanks Alfonso
2016 Mar 31
2
Ask if an object will respond to a function or method
...bgtest pbsytest pcdtest pdim [11] pdwtest phtest print pwartest pwfdtest [16] pwtest residuals terms update vcov see '?methods' for accessing help and source code > coef(zz) log(pcap) log(pc) log(emp) unemp -0.026149654 0.292006925 0.768159473 -0.005297741 I don't understand why coef(zz) succeeds but coef is not listed as a method. Right now, I'm contemplating this: zz1 < - try(coef(zz)) if (inherits(zz1, "try-error")) stop("Your model has no coef method") This see...
2009 Nov 09
3
Bug in all.equal() or in the plm package
...or) bug either the command all.equal() or in the "plm" package. I demonstrate this using an example taken from the documentation of plm(): ====================================== R> data("Produc", package="plm") R> zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, + data=Produc, index=c("state","year")) R> all.equal(zz,zz) [1] TRUE Warning message: In if (length(target) != length(current)) return(paste("target, current differ in having response: ", : the condition has length > 1 and only the first element will be use...
2010 Mar 10
1
Trouble with plm in Ubuntu 9
...#39;zoo' The following object(s) are masked from package:base : as.Date.numeric > which seems reasonable. However, it fails running the included example in the help. > data("Produc", package="Ecdat") > zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, index=c("state","year")) Error in do.call("~", list(firstpart, as.name(i))) : object 'firstpart' not found In addition: Warning messages: 1: In if (length(formula) == 2) formula <- expand.formula(formula) : the condition has length > 1 a...
2010 Mar 10
0
trouble with plm , Ubuntu 9?
...#39;zoo' The following object(s) are masked from package:base : as.Date.numeric > which seems reasonable. However, it fails running the included example in the help. > data("Produc", package="Ecdat") > zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, index=c("state","year")) Error in do.call("~", list(firstpart, as.name(i))) : object 'firstpart' not found In addition: Warning messages: 1: In if (length(formula) == 2) formula <- expand.formula(formula) : the condition has length > 1 a...
2012 Jul 28
1
Problem with a regression - Dataset Workinghours
? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120728/14a04d34/attachment.pl>
2016 Mar 31
0
Ask if an object will respond to a function or method
...pcdtest pdim > [11] pdwtest phtest print pwartest pwfdtest > [16] pwtest residuals terms update vcov > see '?methods' for accessing help and source code >> coef(zz) > log(pcap) log(pc) log(emp) unemp > -0.026149654 0.292006925 0.768159473 -0.005297741 > > I don't understand why coef(zz) succeeds but coef is not listed as a method. There is a coef.default method. (Also an S$ coef,ANY-method ) > > Right now, I'm contemplating this: > > zz1 < - try(coef(zz))...
2012 Oct 29
1
Hausman test error solve
Hello, I am trying to conduct a Hausman test to choose between FE estimators and RE estimators. When I try to run: library(plm) fixed <- plm(ROS ~ DiffClosenessC +ZZiele + AggSK + nRedundantStrecken + Degree + KantenGew + BetweennessC + SitzKappazitaet, data=Panel,index=c("id","time"),model="within") summary(fixed) fixef(fixed) random <-plm(ROS ~
2012 Feb 07
1
fixed effects with clustered standard errors
Dear R-helpers, I have a very simple question and I really hope that someone could help me I would like to estimate a simple fixed effect regression model with clustered standard errors by individuals. For those using Stata, the counterpart would be xtreg with the "fe" option, or areg with the "absorb" option and in both case the clustering is achieved with "vce(cluster
2010 Oct 14
1
robust standard errors for panel data - corrigendum
...mented in 'plm' yet. It might well be feasible by applying vcovHAC{sandwich} to the time-demeaned data but I'm not sure; in this case, vcovHAC should be applied this way (here: the famous Munnell data, see example(plm)) > library(plm) > fm<-log(gsp)~log(pcap)+log(pc)+log(emp)+unemp > data(Produc) > ## est. FE model > femod<-plm(fm, Produc) > ## extract time-demeaned data > demy<-pmodel.response(femod, model="within") demX<-model.matrix(femod, > model="within") ## estimate lm model on demeaned data ## (equivalent > to FE, but...
2006 Dec 06
3
intercept value in lme
Dear all, I've got a problem in fitting multilevel model in lme. I don't know to much about that but suspect that something is wrong with my model. I'm trying to fit: m1<-lme(X~Y,~1|group,data=data,na.action=na.exclude,method="ML") m2<-lme(X~Y+Z,~1|group,data=data,na.action=na.exclude,method="ML") where: X - dependent var. measured on a scale ranging from
2010 Oct 15
0
nomianl response model
...mented in 'plm' yet. It might well be feasible by applying vcovHAC{sandwich} to the time-demeaned data but I'm not sure; in this case, vcovHAC should be applied this way (here: the famous Munnell data, see example(plm)) > library(plm) > fm<-log(gsp)~log(pcap)+log(pc)+log(emp)+unemp > data(Produc) > ## est. FE model > femod<-plm(fm, Produc) > ## extract time-demeaned data > demy<-pmodel.response(femod, model="within") > demX<-model.matrix(femod, model="within") > ## estimate lm model on demeaned data > ## (equivalent to FE,...