简体   繁体   English

R-非线性模型中关于Biglm的面板数据回归

[英]Panel Data Regression on Biglm in R - Non Linear Model

I have following data set which is panel data. 我有以下数据集,这是面板数据。 Total data is about 78 millions rowcount. 总数据约为7800万行。 I have few more columns of data which I have skipped here. 我在这里跳过了几列数据。

                 date      stockName   PRC VOLUME
2 2016-06-01 09:30:53 ABCD IS Equity 14.25  13957
3 2016-06-01 09:30:54 EFGH IS Equity 14.25  14620
4 2016-06-01 09:31:04 IJKL IS Equity 14.25  14120
5 2016-06-01 09:31:11 MNOP IS Equity 14.25  13820
6 2016-06-01 09:31:47 ABCD IS Equity 14.30  20408
7 2016-06-01 09:31:58 EFGH IS Equity 14.30  29776

As far I understood plain biglm run is not for panel data. 据我了解,普通的biglm运行不适用于面板数据。 Please correct me if I am wrong. 如果我错了,请纠正我。 So how can I use it for panel data. 因此,如何将其用于面板数据。 Any kind of comments or suggestions are welcome. 欢迎提出任何意见或建议。

If what you want to do is estimate a linear model with fixed effects, one possibility is to do it in two steps. 如果您要估算具有固定效果的线性模型,则可能要分两步进行。

  • Step 1: Within-transformation of your outcome and covariates: build within-transformed variables X and Y by subtracting the individual average of each variable from itself 步骤1:对结果和协变量进行内部转换:通过从变量中减去每个变量的平均值,建立内部转换变量X和Y

  • Step 2: Regression of the within-transformed variables using biglm 步骤2:使用biglm进行内部转换变量的回归

The page Econometrics at CRAN can give you an overview about the packages avaiable for econometric analysis. CRAN的计量经济学页面可为您提供可用于计量经济学分析的软件包的概述。

As suggestion, I think lme4 , nlme and even pglm may be the packages for what you are looking for: nonlinear panel data, despite I don't know much about their performance when you have too much rows. 作为建议,我认为lme4nlme甚至pglm可能是您正在寻找的包:非线性面板数据,尽管当行太多时它们的性能我不太了解。

Although they are written in the mixed-effect models jargon, the plm vignette gives brief comments about the interchangeability between this terminology and that used by econometricians. 尽管它们是用混合效应模型行话写的,但plm插图对此术语与计量经济学家所使用的术语之间的互换性给出了简短的评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM