14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

208 Formula Editor Chapter 7<br />

Use Local Variables<br />

Note: Another way to create local variables is to use the button on the Formula Editor keypad, which<br />

automatically creates and displays local variables and places a semicolon after it. See “Add Operators” on<br />

page 210, for details.<br />

See “Use Local Variables in a Formula” on page 223, for an example of referencing local variables in a<br />

formula.<br />

Incorporate Parameters<br />

Parameters are special types of local variables that are recognized as model parameters in some platforms,<br />

such as Nonlinear fitting. They can be used in formulas just as ordinary local variables can.<br />

To view examples of parameters:<br />

1. In the Sample Data folder that was installed when you installed <strong>JMP</strong>, open the Nonlinear Examples<br />

folder and then US Population.jmp.<br />

2. Right-click the column name x-formula and select Formula.<br />

3. Click the menu on the formula element browser and select Parameters.<br />

Notes:<br />

• After completing a nonlinear fit or after using the Reset button in the nonlinear control panel, the<br />

parameter’s value is the most recent value computed by the nonlinear platform.<br />

• Each time the fitting algorithm takes a step, the updated parameter values are shown in the Nonlinear<br />

report.<br />

• When you paste a formula with parameters into a column, the parameters are automatically created for<br />

that column unless it has existing parameters with the same names.<br />

To build a formula that references values found in parameters:<br />

Step 1: Create the Parameter<br />

1. Open the Formula Editor by right-clicking a column name in the data table and selecting Formula.<br />

2. Make sure a term is selected (a red highlight is around it in the formula editing area) in the formula<br />

editing area.<br />

3. Click the menu on the formula element browser and select Parameters.<br />

4. Click New Parameter.<br />

5. Type a name for the parameter. By default, parameters have the names b0, b1, and so on, and have<br />

missing values.<br />

6. Assign a starting value. It is important to enter this value when using a parameter in a model for the<br />

nonlinear platform. After completing a nonlinear fit, the parameter’s value is the most recent value<br />

computed by the nonlinear platform.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!