Displaying 2 results from an estimated 2 matches for "optfct".
Did you mean:
opfct
2013 Feb 20
2
'gmm' package: How to pass controls to a numerical solver used in the gmm() function?
...s. Ideally, I would wish to figure out a way
to be able to choose controls, including the number of iterations, for
the solver that I tell gmm() to use.
Currently, the way I call the function is as follows:
model.name <- gmm(g=g.fn, x=data, gradv=g.gr, t0=c(start),
type=c("twostep"), optfct=c("optim") )
I also would want the gmm() function to know that I want it to pass
the following control -- maxit=1500 -- to the optim solver.
Unfortunately, the 'gmm' manual does not tell whether this is doable.
Thanks for your help.
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",