楼主: mcm310
5533 10

[问答] rqpd包中formula表达式的具体含义 [推广有奖]

  • 1关注
  • 2粉丝

本科生

28%

还不是VIP/贵宾

-

威望
0
论坛币
1602 个
通用积分
1.6600
学术水平
14 点
热心指数
11 点
信用等级
7 点
经验
1131 点
帖子
50
精华
0
在线时间
119 小时
注册时间
2011-4-24
最后登录
2019-9-1

5论坛币

如下,这是帮助文件中对rqpd包formula的说明,请问FE中,竖线之后的s代表什么意思?CRE中,竖线之后的s以及z1、z2等等又代表什么意思?

另外,利用rqpd包可以设置工具变量吗?应该怎样操作呀?

诚心求教,希望明白的小伙伴帮忙解释一下呀~谢谢!


rqpd(formula, panel = panel(), data =parent.frame(),

   na.action, subset, contrasts = NULL, control = NULL, ...)



  

formula

  
  

A method-specific formula  for the model employing the conventions of theFormula package,  which has the additional operator "|". "rqpd"-formulas  are specified as:

  
   

FE:

   
   

y ~ x1 + x2 + ... | s

   
   

CRE:

   
   

y ~ x1 + x2 + ... | s | z1 + z2 + ...

   
  

The portion of the formulas  before the (first) vertical bar is specified like the conventional lm or rq function formulas.

  

The factor variable s specifies the structure of the panel, and in  the FE model it represents the "fixed effects". This is typically  an id column.

  

The last part of the CRE  formula is a specification of the variables in the CRE component. These are  possibly endogenous variables (in the sense that they are affected by the  fixed effects) and must be time-varying. Note that there are two vertical  bars.

  



关键词:Formula form ORM Mul For 表达式
沙发
mcm310 学生认证  发表于 2015-5-5 15:10:03 |只看作者 |坛友微信交流群
[sad][sad]求帮助!在线等T T

使用道具

藤椅
mcm310 学生认证  发表于 2015-5-5 19:12:09 |只看作者 |坛友微信交流群
我好像明白s的涵义了~写下来跟大家讨论~
s应该就是指代表个体效应的符号,比如研究对象是形如:n个国家(country)某时间范围内(year)的某些指标的面板数据模型,那么这里的s就是指country了。
不知道对不对~

使用道具

板凳
bishedasi 学生认证  发表于 2015-5-21 14:01:48 |只看作者 |坛友微信交流群
我觉得楼上说的好像有道理,那Z1 Z2  是指什么呢?

使用道具

报纸
黄沙紫 发表于 2015-5-21 14:52:25 |只看作者 |坛友微信交流群
我也在疑惑这个问题,s 是代表固体效应的,是一个id的形式,但是固定效应不是固定时间或者固定个体么?怎么会是id形式?

使用道具

地板
mcm310 学生认证  发表于 2015-5-22 09:23:25 |只看作者 |坛友微信交流群
bishedasi 发表于 2015-5-21 14:01
我觉得楼上说的好像有道理,那Z1 Z2  是指什么呢?
是指内生变量吧?

使用道具

7
tiantian050324 发表于 2015-5-22 12:29:13 |只看作者 |坛友微信交流群
mcm310 发表于 2015-5-5 19:12
我好像明白s的涵义了~写下来跟大家讨论~
s应该就是指代表个体效应的符号,比如研究对象是形如:n个国家(c ...
是这样的。

使用道具

8
笑眯眯眯眯笑 学生认证  发表于 2016-5-13 00:55:10 |只看作者 |坛友微信交流群
楼主还有rqpd的帮助文件完整版吗?能不能传一份上来?找了一下午都没有找到rqpd的mannual。。。。。。。。

使用道具

9
mcm310 学生认证  发表于 2016-5-20 13:51:41 |只看作者 |坛友微信交流群
笑眯眯眯眯笑 发表于 2016-5-13 00:55
楼主还有rqpd的帮助文件完整版吗?能不能传一份上来?找了一下午都没有找到rqpd的mannual。。。。。。。。
11rqpd.docx (19.27 KB, 需要: 5 个论坛币)

使用道具

10
笑眯眯眯眯笑 学生认证  发表于 2016-5-20 15:55:52 |只看作者 |坛友微信交流群
mcm310 发表于 2016-5-20 13:51
谢谢,请问楼主,z1,z2怎么设置啊?

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 01:57