panel-data Questions

4

Solved

Is it possible to do regressions in R using a panel data set with a binary dependent variable? I am familiar with using glm for logit and probit and plm for panel data, but am not sure how to combi...
Condescending asked 10/5, 2010 at 15:36

3

We're working on panel data, and there is a command in Stata, xtsum, that gives you within and between variance for the variables in the data set. Is there a similar command for R, that produces cl...
Ona asked 14/3, 2018 at 15:43

7

Solved

I am wondering if there is any easy R commands or packages that will all allow me to easily add variables to data.frames which are the "difference" or change of over time of those variables. If my...
Yeryerevan asked 21/3, 2014 at 11:55

1

Solved

Is it ok to run a "plm" fixed effect model and add a factor dummy variable in R as below? The three factors "Time", "Firm” and "Country" are all separate indices ...
Archiplasm asked 25/1, 2022 at 1:22

2

Solved

I want to combine data frames in long format with different length because of the time variable (imbalanced panel data): set.seed(63) #function to create a data frame that includes id, time and x f...
Catercornered asked 26/11, 2021 at 18:49

3

Solved

These are three different ways to run an individual fixed effect method which gives more or less the same results (see below). My main question is how to get predictive probabilities or average mar...
Standoffish asked 15/10, 2021 at 7:59

4

Solved

I'd like to create a variable containing the value of a variable in the previous year within a group. id date value 1 1 1992 4.1 2 1 NA 4.5 3 1 1991 3.3 4 1 1990 5.3 5 1 1994 3.0 6 2 1992 3...
Iowa asked 3/9, 2014 at 16:12

4

I have been doing some research on recurrent neural networks, but I am having trouble understanding if and how they could be used to analyze panel data (meaning cross-sectional data that is capture...
Sulfide asked 12/10, 2016 at 20:59

2

I'm using the linearmodels package to estimate a Panel-OLS. As an example see: import numpy as np from statsmodels.datasets import grunfeld data = grunfeld.load_pandas().data data.year = data.year...
Congruent asked 18/9, 2017 at 12:42

2

I work with panel data: I observe a number of units (e.g. people) over time; for each unit, I have records for the same fixed time intervals. When splitting the data into train and test sets, we ne...

3

Solved

I am working on panel data that looks like this: d <- data.frame(id = c("a", "a", "a", "a", "a", "b", "b", "b", &q...
Alwin asked 29/1, 2021 at 12:53

1

Solved

I am getting an error while I am converting dictionary data frames to Panel dataframe panelda = pd.Panel() --------------------------------------------------------------------------- AttributeError...
Hamby asked 6/1, 2021 at 17:16

1

Solved

I would like to extract the log likelihood from a plm object. It works fine when using the logLik function from the base stats package with either felm from the lfe package or feols from the fixest...
Aeolipile asked 3/10, 2020 at 15:19

2

colleagues! I have panel data: Company year Beta NI Sales Export Hedge FL QR AT Foreign 1 1 2010 -2.2052800 293000 1881000 78.6816 0 23.5158 1.289 0.6554 3000 2 1 2011 -2.2536069 316000 2647000 8...
Laryngology asked 27/4, 2017 at 16:45

4

Solved

I have a panel data set in R (time and cross section) and would like to compute standard errors that are clustered by two dimensions, because my residuals are correlated both ways. Googling around ...
Occultation asked 5/12, 2011 at 18:12

5

Solved

I have a small N large T panel which I am estimating via plm::plm (panel linear regression model), with fixed effects. Is there any way to get predicted values for a new dataset? (I want to estimat...
Canice asked 19/8, 2011 at 14:28

2

Solved

I would like to partition panel data and preserve the panel nature of the data: library(caret) library(mlbench) #example panel data where id is the persons identifier over years data <- re...
Befog asked 23/6, 2015 at 15:45

0

I am trying to figure out how to structure my dataset and build the X and y such that it will work with Keras' Stacked LSTM for sequence classification. I have panel data where I am trying to pred...
Engineer asked 2/2, 2019 at 19:40

1

Solved

I have a data frame that look as follow: import pandas as pd d = {'decil': ['1. decil','1. decil','2. decil','2. decil','3. decil','3. decil'], 'kommune': ['AA','BB','AA','BB','AA','BB'],'2010':[...
Hornbeck asked 27/9, 2018 at 10:6

2

Solved

I am looking at panel data, which is structured like this: D = \{(x^{(k)}_{t},y^{(k)}_{t})\,|\, k=1,\dots,N\, , t=t_0,\dots,t_k \}_{k=1}^{N} where x^{(k)} denotes the k'th sequence, x^{(k)}_{t} ...
Thermogenesis asked 9/3, 2017 at 11:52

2

Solved

I have a csv-file with time series data, the first column is the date in the format %Y:%m:%d and the second column is the intraday time in the format '%H:%M:%S'. I would like to import this csv-fil...
Costard asked 30/4, 2018 at 10:36

1

Solved

Can I specify a Random and a Fixed Effects model on Panel Data using lme4? I am redoing Example 14.4 from Wooldridge (2013, p. 494-5) in r. Thanks to this site and this blog post I've manged to d...
Pansie asked 28/2, 2018 at 15:24

1

Solved

I have a panel data set of 10 obs. and 3 variables. (# of obs. 30 = 10 rows (= countries) * 2 columns (= migration parameters) * 1col for the respective year. My data frame consists of 3 annual dat...
Bays asked 10/11, 2017 at 15:56

1

Solved

I am trying to use a dynamic linear regression using dynlm command in R programming since I need to analyze my panel data but I do not want to use panel regression. However, my model specification...
Aphanite asked 31/10, 2017 at 21:52

1

Solved

I am trying to use a generalized least square model (gls in R) on my panel data to deal with autocorrelation problem. I do not want to have any lags for any variables. I am trying to use Durbin-...
Sedum asked 2/10, 2017 at 22:45

© 2022 - 2024 — McMap. All rights reserved.