Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: multilevel mixed effects piecewise model with 1 unknown knot location


From   "JVerkuilen (Gmail)" <[email protected]>
To   [email protected]
Subject   Re: st: multilevel mixed effects piecewise model with 1 unknown knot location
Date   Wed, 23 Jan 2013 19:05:05 -0500

On Wed, Jan 23, 2013 at 8:51 AM, Maarten Buis <[email protected]> wrote:

> That will require quite some custom programming.

I agree, I don't see a way to do this without a lot of work, but maybe
I'm wrong.


> What you could do is a grid search, i.e. estimate many different
> models with the knot at different locations and pick the one that fits
> best

An alternative might be to use a different model that's fairly close
to the one you want but is still smooth, but I suspect that some kind
of one dimensional grid search will be useful to do regardless because
the closer you are to a hockey stick model the more irregular the
problem will be. A quadratic spline model might be a good way to go.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index