Learn R Programming

colf

Released Version

Build Status

Description

A package to perform a least squares constrained optimization on a linear objective function. It provides a very easy way to run a constrained linear regression using the lm formula syntax that most R users are familiar with.

Installation

To install the latest released version from CRAN you just need to run on your console:

install.packages('colf')

To install the development version you need to have the devtools package installed. To install devtools type in your console: install.packages('devtools').

Then to install colf run the following on your console:

devtools::install_github('lyzander/colf')

Usage

By typing on your console:

library(colf)
colf_nls(mpg ~ ., mtcars, upper = rep(2, 11), lower = rep(-0.5, 11))

you can see a first example of how to run a constrained optimization on a linear objective function!

Links - Cran / Tutorial / Examples

To read the tutorial and documentation for colf please see the vignette.

To see the released version you can visit CRAN.

Copy Link

Version

Install

install.packages('colf')

Monthly Downloads

232

Version

0.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Theo Boutaris

Last Published

October 9th, 2017

Functions in colf (0.1.3)

coef.colf_nlxb

Coefficients for colf_nlxb
colf_nls

Non linear Least Squares Optimization on a Linear Objective Function
colf_nlxb

Nash Variant of the Marquardt algorithm on a linear objective function
construct_formula

Construct an nls-compatible formula from an lm style formula
residuals.colf_nlxb

Residuals for colf_nlxb
summary.colf_nlxb

colf_nlxb Summary
fitted.colf_nlxb

Fitted values for colf_nlxb
predict.colf_nls

Predict method for colf_nls
predict.colf_nlxb

Predict method for colf_nlxb
print.colf_nlxb

colf_nlxb Print method