楼主: hduzqq
2501 1

[问答] 求大神帮忙 mycontour(logf,limits,data,...) [推广有奖]

  • 0关注
  • 0粉丝

硕士生

82%

还不是VIP/贵宾

-

威望
0
论坛币
726 个
通用积分
2.5351
学术水平
11 点
热心指数
21 点
信用等级
10 点
经验
2584 点
帖子
106
精华
0
在线时间
227 小时
注册时间
2011-5-21
最后登录
2021-3-5

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
帮助文件里是这么写的
DescriptionFor a general two parameter density, draws a contour graph where the contour lines are drawn at 10 percent, 1 percent, and .1 percent of the height at the mode.
Usagemycontour(logf,limits,data,...)Arguments
logffunction that defines the logarithm of the density
limitslimits (xlo, xhi, ylo, yhi) where the graph is to be drawn
datavector or list of parameters associated with the function logpost
...further arguments to pass to contour
ValueA contour graph of the density is drawn
Author(s)Jim Albert
Examplesm=array(c(0,0),c(2,1))v=array(c(1,.6,.6,1),c(2,2))normpar=list(m=m,v=v)mycontour(lbinorm,c(-4,4,-4,4),normpar) 我运行了下面例子    捕获.PNG 没办法理解呀
二维码

扫码加我 拉你入群

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

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

关键词:contour limits limit Data Tour limits

沙发
DM小菜鸟 发表于 2014-12-7 22:18:51 |只看作者 |坛友微信交流群
这个这个,我翻译一下下给你,就明白了~

这是一个画双变量密度函数的等高线图的函数,对于一般的两个参数的密度,绘制的等高线图,其中的轮廓线在10%,1%,和0.1%的高度在模式绘制。

基本用法是:mycontour(logf,limits,data,...),其中——

1. logf
函数定义的密度的对数
   
2. limits
其中要被绘制的图形的限制(XLO,XHI,YLO,YHI)

3. data

与功能相关联的参数的向量或列表logpost

4. ...
我们还可以有更多R语言认识并且接受的参数传递给轮廓

那个例子,是这么回事——

m=array(c(0,0),c(2,1))
v=array(c(1,.6,.6,1),c(2,2))#设定参数
normpar=list(m=m,v=v) #构造列表
mycontour(lbinorm,c(-4,4,-4,4),normpar)#扔函数里,lbinorm是二元正常密度的对数


使用道具

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

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

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

GMT+8, 2024-4-25 08:50