Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Multiple regressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74234] Multiple regressions
  • From: Clifford Martin <camartin at snet.net>
  • Date: Thu, 15 Mar 2007 04:59:05 -0500 (EST)

Hi Group,

I have a code that does multiple regressions on a set of data. Depending on=
 the size and shape of the data I first do a regression, look at residuals,=
 subtract the worst data point and do the regression again. I've written th=
is with a set of If statements so if the size of the data becomes too small=
 the next regression won't be done. This works fine for a single data set b=
ut if I put it into a loop through multiple data sets then I run into troub=
le. For example if the first data set goes through 5 regressions and the ne=
xt data set only has enough data to go through 2 it takes the data from the=
 first data set for the last 3 which I don't want. How do I clear the data =
after each pass through a data set. I've tried Clear[function1, function2,.=
..etc.]. I've tried UnSet[values,values]. So the question is once I've gone=
 through the loop how do I clear the values so the next data set through it=
 is not carried over.

Thanks for any help.

Cliff


  • Prev by Date: Initialization cell appearance
  • Next by Date: Re: Real/Comlex function problem with D
  • Previous by thread: RE: Initialization cell appearance
  • Next by thread: RE: Multiple regressions