楼主: wjl20072008
3796 3

recserar怎么用,请举例指点谢谢啊 [推广有奖]

  • 1关注
  • 0粉丝

大专生

61%

还不是VIP/贵宾

-

威望
0
论坛币
18 个
通用积分
1.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
520 点
帖子
20
精华
0
在线时间
73 小时
注册时间
2009-11-13
最后登录
2021-12-3
毕业学校
华中科技大学

楼主
wjl20072008 发表于 2009-11-20 10:25:30 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
recserar的问题,请举例谢谢啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:recserar Era rar 指点 举例 recserar

沙发
xuelida 在职认证  发表于 2009-11-20 10:30:06
recserar

Purpose

Computes a vector of autoregressive recursive series.

Format

y = recserar(x,y0,a);

Input


x
NxK matrix

y0
PxK matrix.

a
PxK matrix.


Output


y
NxK matrix containing the series.


Remarks

recserar is particularly useful in dealing with time series.

Typically, the result would be thought of as K vectors of length N.

y0 contains the first P values of each of these vectors (thus, these are prespecified). The remaining elements are constructed by computing a Pth order “autoregressive” recursion, with weights given by a, and then by adding the result to the corresponding elements of x. That is, the tth row of y is given by:

  


and

  


Note that the first P rows of x are not used.

Example

n = 10;

fn multnorm(n,sigma) = rndn(n,rows(sigma))*chol(sigma);

let sig[2,2] = { 1 -.3, -.3 1 };

rho = 0.5~0.3;

y0 = 0~0;

e = multnorm(n,sig);

x = ones(n,1)~rndn(n,3);

b = 1|2|3|4;

y = recserar(x*b+e,y0,rho);

In this example, two autoregressive series are formed using simulated data. The general form of the series can be written:

y[1,t] = rho[1,1]*y[1,t-1] + x[t,.]*b + e[1,t]

y[2,t] = rho[2,1]*y[2,t-1] + x[t,.]*b + e[2,t]

The error terms (e[1,t] and e[2,t]) are not individually serially correlated, but they are contemporaneously correlated with each other. The variance-covariance matrix is sig.
已有 2 人评分经验 论坛币 学术水平 收起 理由
zhaomn200145 + 20 + 20 根据规定进行奖励
xuehe + 60 + 100 + 4 tk

总评分: 经验 + 80  论坛币 + 120  学术水平 + 4   查看全部评分

藤椅
wjl20072008 发表于 2009-11-20 16:10:00
版主谢谢您啊

板凳
fanxuchun 发表于 2012-5-9 23:34:22
xuelida 发表于 2009-11-20 10:30
recserar

Purpose
您好,请问要查找GAUSS中各种函数的使用,该怎么做啊,好像GAUSS中的help功能不够强大啊,这点和MATLAB以及STATA相比差多了。

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-29 22:52