Displaying 4 results from an estimated 4 matches for "do_nlm".
Did you mean:
do_ls
2003 Oct 06
1
getting names of p vector in nlm function...
...available, are always present no matter where they get passed. Is
that not correct? Optim give the same results. Is it possible to "get"
nlm/optim to preserve the names without modifying the C code? I started
looking at the R and C code to examine where to change this and found the
SEXP do_nlm(SEXP call, SEXP op, SEXP args, SEXP rho)
function, but I'm not really sure how to modifiy yet to preserve the
variable names, if there are variable names when it gets to that function.
Plus I'd have to install lots of new and potentially conflicting tools on my
win32 machine and then debug...
2008 Jan 15
1
Viewing source code for .Internal functions
I am trying to view the source code of the function nlm in the stats
package of R 2.4.1.
I downloaded the source from CRAN and opened nlm.R, and it calls a
.Internal function:
.Internal(nlm(function(x) f(x, ...), p, hessian, typsize, fscale,
msg, ndigit, gradtol, stepmax, steptol, iterlim))
This is the same thing I saw when entering the function name at the R
command
2002 Jul 22
2
typsize and fscale arguments to nlm
Dear R list members,
I have a question about the proper use of the typsize and fscale arguments
to nlm.
I use nlm in my sem package to fit general structural-equation models,
which entails maximizing a multinormal likelihood with respect to
parameters that represent regression coefficients and covariances of
variables. The magnitudes of these parameters can be very different.
The
2003 Sep 30
1
can't get names from vector in nlm calls
I've been trying to figure out how to get the names of the parameter vector
variables when inside the function that nlm calls to return the objective
function value:
knls <- function( theta, eqns, data, fitmethod="OLS", instr=NULL, S=NULL )
{
## print( names( theta ) ) # returns NULL
## get the values of the parameters
for( i in 1:length( theta ) )