Tanush Jagdish
2018-Jul-26 22:29 UTC
[R] How to limit an isotonic step regression to exactly n steps?
I am trying to fit an isotonic step function to my data. Every isotonic step regression function (I've tried isoreg, pava, etc) 'finds' multiple points of increase (steps) across my dataset. However, I would like to limit the steps to 7, because given my understanding of the data, I expect exactly 7 sudden points of increase. (I will then see if the steps predicted by the regression occur at the regions I expect them to.) Could anyone please help me restrict the number of points to 7 or any other defined number? I would really appreciate it. [[alternative HTML version deleted]]
PIKAL Petr
2018-Jul-27 09:32 UTC
[R] How to limit an isotonic step regression to exactly n steps?
Hi Did you consider strucchange or segmented packages? They accept restriction on number of segments. Cheers Petr> -----Original Message----- > From: R-help <r-help-bounces at r-project.org> On Behalf Of Tanush Jagdish > Sent: Friday, July 27, 2018 12:30 AM > To: r-help at r-project.org > Subject: [R] How to limit an isotonic step regression to exactly n steps? > > I am trying to fit an isotonic step function to my data. Every isotonic step > regression function (I've tried isoreg, pava, etc) 'finds' multiple points of > increase (steps) across my dataset. However, I would like to limit the steps to 7, > because given my understanding of the data, I expect exactly 7 sudden points > of increase. > > (I will then see if the steps predicted by the regression occur at the regions I > expect them to.) > > Could anyone please help me restrict the number of points to 7 or any other > defined number? I would really appreciate it. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.Osobn? ?daje: Informace o zpracov?n? a ochran? osobn?ch ?daj? obchodn?ch partner? PRECHEZA a.s. jsou zve?ejn?ny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner?s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/ D?v?rnost: Tento e-mail a jak?koliv k n?mu p?ipojen? dokumenty jsou d?v?rn? a podl?haj? tomuto pr?vn? z?vazn?mu prohl??en? o vylou?en? odpov?dnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/