CURVEFIT

CURVEFIT is available in Statistics Base Edition

CURVEFIT fits selected curves to a line plot, allowing you to examine the relationship between one or more dependent variables and one independent variable. CURVEFIT also fits curves to time series and produces forecasts, forecast errors, lower confidence limits, and upper confidence limits.

CURVEFIT VARIABLES= varname [WITH varname]

 [/MODEL= [LINEAR**] [LOGARITHMIC] [INVERSE]

          [QUADRATIC] [CUBIC] [COMPOUND]

          [POWER] [S] [GROWTH] [EXPONENTIAL]

          [LGSTIC] [ALL]]

 [/CIN={95** }]
       {value}

 [/UPPERBOUND={NO**}]
              {n   }

 [/{CONSTANT† }  
   {NOCONSTANT} 

 [/PLOT={FIT**}]
        {NONE }

 [/ID = varname]

 [/PRINT=ANOVA]

 [/SAVE=[PRED] [RESID] [CIN]]

 [/APPLY [='model name'] [{SPECIFICATIONS}]]
                          {FIT           } 

 [/TEMPLATE='filename']

**Default if the subcommand is omitted.

†Default if the subcommand is omitted and there is no corresponding specification on the TSET command.

This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.

Syntax for the CURVEFIT command can be generated from the Curve Estimation dialog.

Release History

Release 19.0

  • TEMPLATE subcommand introduced.

Example

CURVEFIT VARIABLES = VARY
  /MODEL=CUBIC.