Yes, but it is not I think wired into any program.
For example, you could split your data randomly
gen fit = uniform() > 0.5
and then fit the model to one subset
nl ... if fit
and then look at predictions for the other:
... if !fit
Nick
[email protected]
Simon Moore
> I am hoping to use non-linear least squares (nl) in Stata v8.0. The
> analyses are relatively straight forward (nl exp2 var1 var2). However
> it would be nice if I could perform some form of split half analysis
> (i.e. fit the model to one half of the dataset and then see how it
> predicts on the other half). Is there a means of achieving this in
> Stata?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/