winthander
请问谁有介绍isotonic regression的资料或者是例题?或者是用r写的关于这方面的程序
不胜感激!
bjt
function (x, y = NULL)
{
xy <- xy.coords(x, y)
x <- xy$x
isOrd <- (!is.null(xy$xlab) && xy$xlab == "Index") || !is.unsorted(x)
if (!isOrd) {
ord <- order(x)
yo <- xy$y[ord]
}
z <- .Call("R_isoreg", if (isOrd) xy$y else yo, PACKAGE = "stats")
structure(c(xy[c("x", "y")], z[c("yf", "yc", "iKnots")],
list(isOrd = isOrd, ord = if (!isOrd) ord, call = match.call())),
class = "isoreg")
}
<environment: namespace:stats>
yihui
函数名称:isoreg()
rtist
头一次注意到这个东西,quadprog、LowRankQP等等应该也可以
winthander
非常感谢bjt,益辉和rtist,我好好研究下,以后看不懂的话再多多请教^_^
winthander
请问bjt有这个程序的题目吗,这样看我看不懂,对这个回归不了解,看了一些参考资料都是一大堆公式
yihui
本末倒置,不了解理论居然先问程序如何实现……
winthander
我基本上都是通过应用再去揣摩理论,确实不符常规,因为我不是统计出身
winthander
只学理论会感觉很枯燥