Learn R Programming

OptimModel (version 2.0-1)

print.optim_fit: Prints optim_fit objects

Description

Provides a nice printed summary of optim_fit objects.

Usage

# S3 method for optim_fit
print(x, digits=4,...)

Value

No Return Value.

Arguments

x

An object resulting from optim_fit().

digits

Number of digits to print for output.

...

other arguments not used by this function.

Author

Steven Novick

See Also

optim_fit

Examples

Run this code
set.seed(123L)
x = rep( c(0, 2^(-4:4)), each=4 )
theta = c(0, 100, log(.5), 2)
y1 = hill_model(theta, x) + rnorm( length(x), sd=2 )

fit1=optim_fit(theta, hill_model, x=x, y=y1)
print(fit1)
fit1

Run the code above in your browser using DataLab