Questions tagged [plm]

R package primarily concerned with panel data. Package contains a set of estimators and tests for panel data.

510 questions
0
votes
1 answer

Dynamic panel data with plm. Error "solve.default(Reduce("+", A1)) "

I have a df in pdata.frame format from plm library : library(plm) head(df) : Company Year Kapitalinkomster Bank.o.kassa 3-1920 3 1920 1.388520 0.5520765 3-1921 3 1921 1.251319 0.6952595 3-1922 3…
user1665355
  • 3,324
  • 8
  • 44
  • 84
0
votes
2 answers

PLM object to LaTeX table

How can I make LaTeX tables with plm objects? I have been using apsrtable to make LaTeX tables for output summaries for lm objects, but can't seem to find an easy way to do the same with plm. I am calculating panel corrected standard errors using…
user1288578
  • 411
  • 1
  • 6
  • 15
0
votes
1 answer

pgmm from plm package gives error for summary

I am trying to use the pgmm function from the plm package for R. The regression runs and I can call up the results, however, asking for the summary gives the following error: Error in t(y) %*% x : non-conformable arguments I've imported the data…
Bastiaan Quast
  • 2,802
  • 1
  • 24
  • 50
-1
votes
2 answers

When I run a panel regression it says it is computationally singular...but i don't think it is

I am trying to use [r] to run plm on two large datasets, one with 400K obs and the other with 1.1 million. I can run the smaller in SAS but the larger doesn't work. I was trying to see if I could use [r] and when I try to run the code below it…
jswtraveler
  • 345
  • 6
  • 19
-1
votes
1 answer

How to get unique row names in ONE column?

I have a big dataframe as 'data', lets consider this: `data <- data.frame(DATE = c(2012, 2012, 2013, 2014, 2014, 2015), NAME = c("A", "G", "N", "L",'L' "L"), LCR = c(1, 3, 5, 4, 5, 1), MWFR=c(0,0,0,0,0,0,1,1), …
-1
votes
1 answer

Plotting panel regression

In the image there is the head of my data, what I want to know is if it id possible to plot these two regressions with a spline curve, together with the raw data of each hospital? I mean, each plot should have the spline regression togheter with…
-1
votes
1 answer

treatment effect on unbalanced panel data

enter image description hereI have one unbalanced dataset that contains movie sales data along with some of the characteristics of the movies for several years. One treatment (event) happened in the society in a specific year in between. Now, I want…
Lili.Y
  • 13
  • 3
-1
votes
1 answer

How to correctly take out zero observations in panel data in R

I'm running into some problems while running plm regressions in my panel database. Basically, I have to take out a year from my base and also all observations from some variable that are zero. I tried to make a reproducible example using a dataset…
francescobfc
  • 107
  • 1
  • 11
-1
votes
1 answer

R, finding the worst predicted cases in a panel regression

I am working on a model explaining country participation in an international institution. After a Panel Regression using both a random- and a within transformation model, I want to select the cases (i.e. countries) which the model predicts the…
a123
  • 5
  • 2
-1
votes
1 answer

Treating binary variables for first difference method to solve autocorrelation issue

I have an autocorrelation problem in my panel data. So I decided to use first difference method so deal with this problem. Most of my independent variables are binary. So if I do the finite difference method over this, I get -1, 0, and 1 instead of…
Eric
  • 528
  • 1
  • 8
  • 26
-1
votes
1 answer

How to combine a column from a data table to panel data structure

I have been working with a large panel data set. My simple data set look like below. +--------+------+------+-----+-----+--------+ | Time | Firm | Land | Lab | Cap | GL | +--------+------+------+-----+-----+--------+ | Jan-00 | A | 25…
Doo
  • 29
  • 7
-2
votes
1 answer

object of type 'closure' is not subsettable with pglm::pglm function in R to estimate panel logit

I'm trying to use the pglm function from pglm package to obtain a random effects panel estimation of an ordered logistic model. When testing the standalone function pglm it gives me the desired result. Here's my…
mike.dl
  • 67
  • 8
-2
votes
1 answer

PLM package in R

This is a trivial question; but, I'm new to R; and, none of the tutorials I've seen address it. When using the PLM package in R for my panel data, do I include the cross sectional units, the individuals' variable, in my regression formula? While…
user110059
-3
votes
4 answers

docdokuplm post-installation instructions

docdokuplm Hi ! Just checking out your PLM, looks great! I followed your instructions: https://github.com/docdoku/docdoku-plm/wiki/Installation-Guide I used the nightly build. After uploading the ear file and then using http://localhost:8080 I see…
-3
votes
1 answer

Heteroscedasticity Test for Random Effects Model

I'm running a random effects model using the plm package and now I need to test for the presence of heteroscedasticity, but I'm not sure how to process it in the mentioned package. My model: random <- plm(Y ~ X, data=panel_data, model= "random",…
phill
  • 95
  • 2
  • 10
1 2 3
33
34