similar to: plm package twoways effect problem

Displaying 20 results from an estimated 400 matches similar to: "plm package twoways effect problem"

2010 Mar 29
1
plm package duplication problem
hi, i am writing my master thesis and i am dealing with 146474 observations (panel data), i have just learned the R so i am a beginner!! i am trying to use the "plm" package and i have a duplication problem; i have written the following commands to read my data and create my model >dsn<-plm.data(ds, c("stno", "year")) ds=name of my data, stno=individual
2010 May 03
2
question about the degrees of freedom
Dear R users, I think i have a simple question which i want to explain by an example; i have several 2-digit industry codes that i want to use for conducting by-industry analysis but i think there is a problem with the degrees of freedom! for example, when i do my analysis without any 2-digit industry code, i got the following summary (i have 146574 observations in total): >
2010 May 03
1
question about the degrees of freedom‏
Thank you for your advice, ill try to be more explicit now, i wasnt in the first mail because i thought it is a simple question to answer, so; i have a panel data which contains 48858 observations during 3 year therefore, there are 146574 observations in total, i have 22 different industries defined by 2-digit codes such as 11, 13,14,16...40 therefore, ind_2d contains 22 2-digit codes for
2010 Apr 23
1
creating dummy with loop command‏
Hi Dimitri, Thanks for help, i knew that way that you have suggested but in fact my case is a little bit complicated than this, therefore, i am writing a better explanation now, my model is trying to see the effect of eco-innovative industries on total output, thats why i am trying to estimate by-industry regression: the model is lnQ~lnC+lnM+lnL+lnE+eco_inno+inno+(sum)ind_3d capital,material
2010 Jun 09
1
equivalent of stata command in R‏
From: saint-filth@hotmail.com To: saint-filth@hotmail.com Subject: RE: Date: Wed, 9 Jun 2010 09:53:20 +0000 OK! sorry thats my fault, here the translations of the stata commands 1st step is to get the mean values of the variables, well that doesnt need explanation i guess, 2nd step is to estimate the model on panel data estimation method which is:
2010 Jun 09
1
equivalent of stata command in R
Dear all, I need to use R for one estimation, and i have readily available stata command, but i need also the R version of the same command. the estimation in stata is as following: 1. Compute mean values of relevant variables . sum inno lnE lnM Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------
2010 Apr 14
0
total. factor. prodctvty. help!!
Dear all, I have a basic(!) econometric question which i couldnt find the way to do it in R. Well this could be also because of my wrong interpretation of the econometric process that i am trying to implemet.so here i wanna ask if am doing a logical mistake!!! so here is the question with the explanation of the process, hope there will be someone who can help me! suppose i have a basic
2010 Apr 09
0
panel regression with twoways random effects, on unbalanced data?
Dear R users What would be the best way to approach estimating a panel regression with twoways random effects, on unbalanced data? Unfortunately, the "plm" package has no implementation of twoways random effects for unbalanced data. Currently I'm considering two approaches: - extend "plm" to cover this type of panel regression. (For the authors, cc'ed:) Would
2010 May 17
0
plm(..., model="within", effect="twoways") is very slow on unablanaced data (was: Re: Regressions with fixed-effect in R)
Hello Giovanni I made a minor modification to your function, which now allows to compute the within R-sq in Twoways Within models (see below). However I ran into an issue that I have already encountered before: whenever I try to fit Twoways Within models on my unbalanced data, the process is strangely slow and I usually terminate it either after ~15min or when my CPU hits 100C. This is similar to
2010 Jun 09
1
equivalent of stata command in R‏‏
Thanx for your response, yeah, i know i didnst specified the indexes when i wrote the 2nd mail, in fact in the 1st mail i wrote already that i dont have problem with the estimation of the model... thats the reason why i didnt write in fact since the issue is not to estimate the model but to get the marginal effect, anyway, i figured out that predict(), doesnt work for panel data... and well, my
2010 Mar 16
2
plm "within" models: is the correct F-statistic reported?
Dear R users I get different F-statistic results for a "within" model, when using "time" or "twoways" effects in plm() [1] and when manually specifying the time control dummies [2]. [1] vignette("plm") [2] http://cran.r-project.org/doc/contrib/Farnsworth-EconometricsInR.pdf Two examples below: library("AER") data("Grunfeld", package =
2018 Jan 26
1
plm empty model error
Hi, I am trying to estimate a two-way model with both individual and time fixed effects. I am using plm with "twoways" specification. plm(as.integer(yvar) ~ xvar, index = c("id", "time"), model="within", data=dataset, effect = "twoways") But I get keep getting the following message and I don't know what to do about it, because I don't
2002 Dec 04
1
Help: add arrows on a filled.contour figure
Dear All I would like to use filled.contour to plot something with arrows on it. I did it in this way: filled.contour(1:nx,1:nz,u,col=gray(rev((0:20/20)))) for (j in zseq ) for (i in xseq) arrows(i, j, i+u[i,j],j+w[i,j],length=angleng,angle=angarrow,code=2, lwd=1,col="black") The peoblem is that the arrows use the whole device area, including the key on the right hand side of the
2009 Aug 21
1
Panel Data Analysis (PLM) - Fixed Effects - "cannot allocate vector of length"
Hello to all on the list, I'm trying to estimate a fixed effects model from a large (unbalanced) panel data set. I have no problems when using only an individual effect or only a time effect, but I get an error message when I try for a "twoways" effect. Here is some of the code: paneldata27 is the entire panel data set: > dim(paneldata27) [1] 1178831 8 >
2018 May 08
0
plm(...,"within","twoways") extremely slow on unbalanced panel
I am using it on a big dataset. The estimation was done in hours. But summary() takes forever. Any suggestion is greatly appreciated! [[alternative HTML version deleted]]
2012 Mar 08
1
Panel models: Fixed effects & random coefficients in plm
Hello, I am using {plm} to estimate panel models. I want to estimate a model that includes fixed effects for time and individual, but has a random individual effect for the coefficient on the independent variable. That is, I would like to estimate the model: Y_it = a_i + a_t + B_i * X_it + e_it Where i denotes individuals, t denotes time, X is my independent variable, and B (beta) is the
2013 May 17
2
How could I see the source code of functions in an R package?
Hi, How could I see the source code of functions in an R package? If we type ?function_name , we will see documentations of the function_name. If we type function_name, is what returns just the source code? Could we just save it in an .R file and modify as we want? However, it seems that sometimes the source code is hidden (or stored elsewhere?) As an example, could we see the source
2010 May 24
1
Fixed Effects Estimations (in Panel Data)
dear readers---I struggled with how to do nice fixed-effects regressions in large economic samples for a while. Eventually, I realized that nlme is not really what I needed (too complex), and all I really wanted is the plm package. so, I thought I would share a quick example. ################ sample code to show fixed-effects models? in R # create a sample panel data set with firms and years
2013 Jan 11
0
Manual two-way demeaning of unbalanced panel data (Wansbeek/Kapteyn transformation)
Dear R users, I wish to manually demean a panel over time and entities. I tried to code the Wansbeek and Kapteyn (1989) transformation (from Baltagi's book Ch. 9). As a benchmark I use both the pmodel.response() and model.matrix() functions in package plm and the results from using dummy variables. As far as I understood the transformation (Ch.3), Q%*%y (with y being the dependent variable)
2012 Nov 06
1
plm(): observations not used for modelling
Hello, I have posted this problem before, but thought I try to explain it a bit better. I'm using the function plm to create a fixed effects model for panel data, my method is therefor "within" my effect is "twoways". My Data contains unbalanced Panels due to missing Values, but contains 309 observation for 11 variables (incl. response), with no missing Values. These 309