简体   繁体   English

将stargazer与panelAR一起使用

[英]Using stargazer with panelAR

Is it possible to export regression tables created with the panelAR package using stargazer ? 是否可以使用stargazer导出使用panelAR软件包创建的回归表? When I try I get 当我尝试时

% Error: Unrecognized object type. %错误:无法识别的对象类型。

Creating a data frame first would probably do the trick, but as I am fairly new to RI have no clue how to do it. 首先创建一个数据帧可能会成功,但由于我对RI还是很陌生,所以不知道如何做。

The short answer is no, you can't use the stargazer package to create tables when you use panelAR . 简短的答案是不,当您使用panelAR时,您不能使用stargazer包创建表。

This reason for this, as the error message suggest, is that stargazer does not support objects whose class is panelAR . 如错误消息所暗示的,这是因为stargazer不支持其类为panelAR对象。 See https://cran.r-project.org/web/packages/stargazer/stargazer.pdf for a comprehensive list of the model supported by stargazer 有关stargazer支持的模型的完整列表,请参见https://cran.r-project.org/web/packages/stargazer/stargazer.pdf

R is an object oriented language, since you are new to R you might find it advantageous to better understand what is meant by this. R是一种面向对象的语言,因为您不熟悉R,所以您可能会发现更好地理解它的含义是有利的。

Loosely speaking, object oriented means that everything in R is an object. 宽松地说,面向对象意味着R中的所有对象都是对象。 Each object has metadata attached to it. 每个对象都有附加的元数据。 Arguably the most important piece of metadata is the object's class. 可以说,元数据最重要的部分是对象的类。 To determine an object's class, you can call the class function. 要确定对象的类,可以调用class函数。 Again loosely speaking, when you pass an object to a function, the function will usually first consider what class the object has and then preform the necessary analysis. 再次宽松地说,将对象传递给函数时,函数通常会首先考虑对象具有的类,然后进行必要的分析。

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

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