JiaxiangBU / tutoring2

The collection of Python and R code scripts to tutor others.
https://jiaxiangbu.github.io/tutoring2/
Other
8 stars 7 forks source link

search piecewise.linear #43

Closed JiaxiangBU closed 4 years ago

JiaxiangBU commented 4 years ago

这不是一个包里面的,这是这个项目作者自定义的,函数见

https://github.com/TypeFox/R-Examples/blob/d0917dbaf698cb8bc0789db0c3ab07453016eab9/SiZer/R/piecewise.linear.R#L3-L46

但是我看到有 R 包使用了

https://github.com/cran/elasso/blob/df6f101354057e707a6d7d85d68e0001aeb2a1d0/R/BRLasso.R#L73-L74

而且不是 import 的,所以肯定是自定义的,我查看下。

https://github.com/cran/SparseLearner/blob/127213c714e9d8e07bd27743bccf87cb699ba655/R/SGraph.R#L118

只有两个 import

https://github.com/cran/SparseLearner/blob/127213c714e9d8e07bd27743bccf87cb699ba655/R/BRLasso.R#L12-L13

查看下这两个包。

https://github.com/cran/glmnet/search?q=piecewise&unscoped_q=piecewise 没查到。

查到了包 'SiZer'

https://github.com/cran/SiZer/blob/7130e3b109f06e171942ea24a18553ba3bc4b114/R/piecewise.linear.R#L52-L95