作者aee36900 (持久战!!)
看板R_Language
标题Re: [问题] plot 3D图如何标示最大值
时间Fri Sep 4 16:25:28 2015
感谢大大分享
新手还不太理解
熟悉了matrix的function
目前先使用 summary(pred.tmp$maxRRfit) 的方式
来得到最大的RR值以及lag day
先放弃在3D图上标示@@
※ 引述《celestialgod (天)》之铭言:
: 如果要找最大值可以直接使用optim来做
: 我直接base在andrew大大的程式上写的....
: findTheMax = optim(c(1,1),
: function(x) -predict(mod, data.frame(x=x[1],y=x[2]), type = "response"),
: lower = c(1,1), upper = c(9,9))
: findTheMax$par # location of x,y
: findTheMax$value # maximum value of z
: ※ 引述《andrew43 (讨厌有好心推文後删文者)》之铭言:
--
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 211.76.246.58
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1441355130.A.B23.html
※ 编辑: aee36900 (211.76.246.58), 09/04/2015 17:25:08
※ 编辑: aee36900 (211.76.246.58), 09/04/2015 17:25:45