# Setting bounds on parameters in nlsys

User ForumSetting bounds on parameters in nlsys

Hi,

I use command "nlsys" to match some moments in my project. I wonder if I can set the bound for the guesses of parameters. I know that option is available in "optmat" with  command "name.bounds={0.5 1}. Is there a similar command in "nlsys"?

Thank you!

Laura

Bounds on parameters can be placed using a math transformation. To constrain a parameter to be between a and b, use a logit transformation. First write a proc

```proc logit(p,a,b);

local y;
y = (b - a) / (1 + exp(-p)) + a;
retp(y);
endp;
```

This will constrain p to be between b and a, i.e., if p = -inf, y = a, and if p = + inf, y = b;

Imbed logit(x,a,b) wherever that parameter shows up in your equation. For example, suppose you have a parameter list, p[1:3].

```p[1]*x^2 + logit(p[2],0,1)*x + p[3] = 0;
```

This will constrain the parameter p[2] to be between zero and one.

Also, your parameter estimate is the result of the call to logit(p,a,b);  Thus

```p2hat = logit(p[2],0,1);
```

• ### Aptech Systems, Inc. Worldwide Headquarters

Aptech Systems, Inc.
2350 East Germann Road, Suite #21
Chandler, AZ 85286

Phone: 360.886.7100
FAX: 360.886.8922

• ### Training & Events

Want more guidance while learning about the full functionality of GAUSS and its capabilities? Get in touch for in-person training or browse additional references below.

• ### Tutorials

Step-by-step, informative lessons for those who want to dive into GAUSS and achieve their goals, fast.

• ### Have a Specific Question?

Get a real answer from a real person

• Need Support?
• ### Support Plans

Premier Support and Platinum Premier Support are annually renewable membership programs that provide you with important benefits including technical support, product maintenance, and substantial cost-saving features for your GAUSS System or the GAUSS Engine.

• ### User Forums

Join our community to see why our users are considered some of the most active and helpful in the industry!