MathGroup Archive 1998

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

Search the Archive

problem with Needs[ ] command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13517] problem with Needs[ ] command
  • From: Jordan Milev <jgmilev at amherst.edu>
  • Date: Fri, 31 Jul 1998 04:33:30 -0400
  • Organization: Amherst College
  • Sender: owner-wri-mathgroup at wolfram.com

Hello!  Here's what I have:  In a new notebook type in the following:

data = {{12,1},{7,2},{8,3},{5,4},{3,5}};
Needs["Statistics`LinearRegression`"]; reg = Regress[data, {1, a}, a];
Chop[reg, 10^-3]

Here's what I get:

Regress::"shdw":
    "Symbol \!\(\"Regress\"\) appears in multiple contexts \
\!\({\"Statistics`LinearRegression`\", \"Global`\"}\); definitions in
context \
\!\(\"Statistics`LinearRegression`\"\) may shadow or be shadowed by
other \ definitions."

Regress[{{12,1},{7,2},{8,3},{5,4},{3,5}},{1,a},a]

Why does Mathematica display the error?

Jordan



  • Prev by Date: Re: Help please: Summing a list
  • Next by Date: Re: discrete math, how many zeroes in 125!
  • Previous by thread: Cluster-Analysis with Mathematica?
  • Next by thread: Reading a file