查看分段包
Check out the segmented package
SiZer 包。
对于此类您想知道某些内容是否存在的情况,搜索 RSeek.org 通常是一个不错的起点已经。
there's a function called piecewise.linear in the SiZer package.
piecewise.linear
Searching RSeek.org is often a good place to start for instances like this where you want to know if something exists already.
您可能还想查看 strucchange 包中的断点函数。 当我有未知数量的断点时,我使用了它。 它易于使用并且有良好的文档。
You might also want to check out the breakpoints function in the strucchange package. I've used it when I've had an unknown number of breakpoints. It's easy to use and has good documentation.
RWeka包中有一个M5P方法。这是一棵叶子中带有线性方程的回归树。示例代码
library("RWeka") MT_model <- M5P(DEP ~ ., data = my_data)
有一些参数需要调整...
MT_model <- M5P(DEP ~ ., data = my_data, control = Weka_control(M = 4, N = FALSE, U = TRUE, R = FALSE))
查看调整参数的说明:
WOW('M5P')
但是还有 caret 包可以自动调整您的参数。
library(caret) train(DEP ~ ., data = my_data, method = 'M5')
There is a M5P method in RWeka package. This is a regression tree with linear equations in leaves. Example code
There are some parameters to be tuned…
To see the description of tunning parameters:
But there is also caret package that can tune your parameters automatically.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(4)
查看分段包
Check out the segmented package
SiZer 包。
对于此类您想知道某些内容是否存在的情况,搜索 RSeek.org 通常是一个不错的起点已经。
there's a function called
piecewise.linear
in the SiZer package.Searching RSeek.org is often a good place to start for instances like this where you want to know if something exists already.
您可能还想查看 strucchange 包中的断点函数。
当我有未知数量的断点时,我使用了它。
它易于使用并且有良好的文档。
You might also want to check out the breakpoints function in the strucchange package.
I've used it when I've had an unknown number of breakpoints.
It's easy to use and has good documentation.
RWeka包中有一个M5P方法。这是一棵叶子中带有线性方程的回归树。示例代码
有一些参数需要调整...
查看调整参数的说明:
但是还有 caret 包可以自动调整您的参数。
There is a M5P method in RWeka package. This is a regression tree with linear equations in leaves. Example code
There are some parameters to be tuned…
To see the description of tunning parameters:
But there is also caret package that can tune your parameters automatically.