Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

LinearModelFit regression estimated variance error

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102310] LinearModelFit regression estimated variance error
  • From: Parita <parita.patel at gmail.com>
  • Date: Wed, 5 Aug 2009 05:43:12 -0400 (EDT)

Hi

I want to run linear regression in Mathematica and am using
LinearModelFit for the same. Following is the code that I am using.
data1 contains the 10 columns. The first 9 columns contains the data
through which I want to run regression and the last column contains
the response value.

model = LinearModelFit [data1, {a, b, c, d, e, f, g, h, i}, {a, b, c,
d, e, f, g, h, i}];
Print[model["BestFit"]];

However, I am getting the following two errors -
FittedModel::varzero: The estimated variance is zero. Properties
requiring division by the variance or standard error will not be
computed.

FittedModel::varnum: The estimated variance -8.76512*10^-32 is not a
positive number. Properties requiring division by the variance or
standard error will not be computed.
FittedModel::badfit: -- Message text not found --

I am getting the coefficients for the regression model bu the standard
error, p-values and R-squared are indeterminate. Any ideas what this
error means and how can I go around it?

Thanks in advance for your help


  • Prev by Date: Re: Package won't load after v.7 upgrade
  • Next by Date: Re: Multiple DE solutions in ParametricPlot
  • Previous by thread: Re: Slow start to AstronomicalData[]David Bailey,http://www.dbaileyconsultancy.co.uk
  • Next by thread: Re: LinearModelFit regression estimated variance error