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

Re: NonlinearRegress problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75868] Re: NonlinearRegress problem
  • From: Bill Rowe <readnewsciv at sbcglobal.net>
  • Date: Sat, 12 May 2007 03:08:37 -0400 (EDT)

On 5/11/07 at 6:31 AM, fulya_bagci at yahoo.com wrote:


>I'm trying to fit data with the function and find two unknown
>parameters. I readlist the data from a text file.My data is as
>{Number,Number},{Number,Number},...I want to
>divide the first Number s to 10 and list again.What command do I
>have to use?

I interpret your question as asking how to go from

{
{x1, y1},
{x2, y2},
...

to

{
{x1, y1/10},
{x2, y2/10},

If I have this correct, then one of the following will do

{First@#,Last@#/10}&/@ data

or

data/.{a_,b_}->{a,b/10}

where data is a variable holding your data

>Secondly, I use NonlinearRegress and it gives such an error: "The data
>argument of NonlinearRegress must be a matrix. Weighted regression is
>specified using the Weights option. The data format {{x11, x12, ...,
>{y11, ..., y1m}}, {x21, x22, ..., {y21, ..., y2m}}, ..., {{xn1, xn2,
>..., {yn1, ..., ynm}}} is reserved for multiple response data, which
>will be supported in the future." What can I do to correct this error?

This error message is indicating you have not used the correct
syntax for NonlinearRegress. But since you haven't posted what
you tried, I've no way to guess what you've done wrong and how
to fix it.
--
To reply via email subtract one hundred and four


  • Prev by Date: Block[], OpenRead[], & /@
  • Next by Date: Re: Re: Mathematica 6 Graphics Options
  • Previous by thread: NonlinearRegress problem
  • Next by thread: elliptic integral (reloaded!)