找回密码
 注册
查看: 413|回复: 0

R语言 schwartz97包 plot.fit-method()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 22:54:02 | 显示全部楼层 |阅读模式
plot.fit-method(schwartz97)
plot.fit-method()所属R语言包:schwartz97

                                        Plot Schwartz two-factor fit-objects
                                         图施瓦茨两个因素适合对象

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This function plots the parameter evolution during the fit, the filtered state variables (i.e. the spot price and the convenience yield), forward curves, or trajectories of the state variables.
此函数曲线的拟合参数的演化过程中,过滤后的状态变量(即现货价格和便利收益),远期曲线,或状态变量的轨迹。


用法----------Usage----------



## S4 method for signature 'schwartz2f.fit,missing'
plot(x, type = c("trace.pars", "state", "forward.curve", "sim"),
     data, ttm, ...)




参数----------Arguments----------

参数:x
A schwartz2f.fit object.
Aschwartz2f.fit对象。


参数:type
What shall be plotted (see Details).
应绘制(见详情)。


参数:data
A matrix containing futures prices to which parameters were fitted.
矩阵包含的期货价格参数进行了拟合。


参数:ttm
A matrix with the corresponding time to maturity (see Details).
一个矩阵,相应的到期时间(见详情)。


参数:...
Arguments passed to plot.
传递参数到plot。


Details

详细信息----------Details----------

If type == "trace.pars", the parameter evolution of the estimation is plotted. The horizontal lines denote the final value.<br> If type == "state", the filtered state variables are plotted and overlaid with the futures prices.<br> If type == "forward.curve", fitted forward curves are plotted.<br> If type == "sim", a bunch of simulated trajectories of the state variables are plotted. <br>
如果type == "trace.pars",该估计的参数演化绘制。水平线表示最终值。<br>如果如果type == "state",安装远期曲线的绘制。<BR>的type == "forward.curve",过滤后的状态变量策划和覆盖的期货价格。<BR>如果type == "sim",一堆给出了状态变量的绘制。参考

The elements of data and ttm have the following interpretation: data[i,j] denotes the futures price whose time to maturity was ttm[i,j] when it was observed. The time unit was defined by the argument deltat of the function fit.schwartz2f (stored in x@deltat).
的元素data和ttm有如下解释:data[i,j]表示,期货价格的时间,到期日为ttm[i,j],当它被观察到。时间单位定义的参数deltat的功能fit.schwartz2f(存储在x@deltat)。


(作者)----------Author(s)----------


David Luethi



参见----------See Also----------

fit.schwartz2f for parameter estimation, plot-method for schwartz2f-objects.
fit.schwartz2f的参数估计,plot方法schwartz2f对象。


实例----------Examples----------



data(futures)

## Estimate parameters for lumber data (stop after 100 iterations)[#参数估计对木材的数据(100次迭代后停止)]
fit.obj <- fit.schwartz2f(futures$lumber$price, futures$lumber$ttm / 260,
                          deltat = 1 / 260,
                          control = list(maxit = 100))

## Plot parameter evolution[#图参数演化]
plot(fit.obj, type = "trace.pars")

## Plot the state variables[#图的状态变量]
plot(fit.obj, type = "state", data = futures$lumber$price,
     ttm = futures$lumber$ttm / 260)

## Plot fitted and real forward curves of wheat data since Jan 2010.[#图厨房和真正的远期曲线的小麦数据,自2010年1月。]
lumber.1995 <- lapply(futures$lumber, function(x)x[as.Date(rownames(x)) < "2000-01-01",])
par(mfrow = c(1, 2))
plot(fit.obj, type = "forward.curve", data = lumber.1995$price,
     ttm = lumber.1995$ttm / 260)
futuresplot(lumber.1995)

## Plot trajectories from the state variables[图轨迹的状态变量]
plot(fit.obj, type = "sim")



转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-15 00:55 , Processed in 0.019464 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表