fmincon in R - disappeared from 'pracma' package? - r

In the 'pracma' package manual there is function fmincon to Minimize Nonlinear Constrained Multivariable Function (page 116). However I've installed this package, but there is no such function.
Has it been removed from this package?
Could anyone indicate any other R ackage or function with such funcionality (Minimize Nonlinear Constrained Multivariable Function) ?

What version of pracma do you have installed? The manual you linked to is from version 2.2.5, and that's also the version on CRAN, and it does have fmincon.
Perhaps you forgot
library(pracma)
to attach it? Installing isn't enough to make the contents visible.

Related

How to set scale and bias in CatBoost R package

The catboost documentation contains instructions for setting model scale and bias in the Python package (here) and the command line implementation (here), but not the R package.
Can anyone show how it is done in R?

Error "could not find function nnet" in R

I am trying to use the function nnet after installing neuralnet package and using the code:
library(neuralnet)
and still get this error all the time.
Does anyone can help me to solve the problem?
thanks
Function nnet is not part of the neuralnet package. The function nnet is part of the nnet package. You need to install the package nnet and load it with library(nnet).
Are you sure there is such a function in the package?
It is not mentioned in the manual of CRAN: https://cran.r-project.org/web/packages/neuralnet/neuralnet.pdf.

How to run maximum likelihood optimization (BFGS) in STAN?

According to the STAN homepage, STAN is capable of penalized maximum likelihood (BFGS) optimization. I am using R package rstan but I haven't found any way how to use this method. I tried to look at the ?stan help for the stan() function, but the only available options algorithms are "NUTS" and "HMC".
I am using rstan version 2.5.0.
You want to look at help(optimizing, package = "rstan"), i.e. the optimizing() function in the RStan package.

Proc UCM (unobserved components model) equivalent of SAS in R

Has anyone tried using package dlmodeler which seems to provide an equivalent of PROC UCM (SAS). Using structTS function is equal to running univariate PROC UCM. Can anyone tell me how to do a multivariate analysis using the same.
Built a package which runs unobserved components model in R which depends on the KFAS package.
The package is available on github.

How to modify an R package to create a new package for Reweighted Kernel Density Estimation?

I am working on "Reweighted Kernel Density Estimation".
I couldn't find any package in R for "weighted bivariate density estimation.
That's why I am going to modify availabe univariate packages. But I don't know how to access to source code for those packages. Please let me know how do that.
All source files can be found on CRAN:
http://cran.r-project.org/web/packages/
You are looking for the tar.gz archive.
You can also type the function you are interested in modifying's name into the R console without parentheses. That will give you the code, but most even halfway complicated packages use either S3 or S4 classes/methods, so you'll need to know more about those to extend them properly.

Resources