search for: darckeen

Displaying 6 results from an estimated 6 matches for "darckeen".

2010 Sep 23
1
non-linear integer optimization?
Are there any packages that do non-linear integer otimization? Looked at lpSolve but i'm pretty sure it only works with linear programming and not non-linear, tried "L-BFGS-B" optim after flooring all my params, works somewhat but seems really inefficient. Anything else I should look at? -- View this message in context:
2010 Jul 28
2
pass list of args to function call
I was wondering how i can get a list of arguments to evaluate within function call. I'd like to be able do something like this: #mod <- glm(y~1,data=df,family="binomial") opt <- list(family="binomial") mod <- glm(y~1,data=df,opt) Any idea how this can be done properly? TIA -- View this message in context:
2010 Sep 19
2
working with eval and environments
I'm trying to get the following section of code to work, I think the problem is being caused by the assignment of data to the lm function not evaluating to "train" in the parent environment but I can't seem to figure out how to do this. fitmodel <- function(trial,data) { wrap.lm <- function(formula,data,...) { cat("in wrap lm",NROW(data),"\n");
2010 Jul 14
1
Add Significance Codes to Data Frame
I was hoping that there might be some way to attach significance code like the ones from summary.lm to a dataframe. Anyone know how to do something like that. Here is the function i'd like to add that functionality to: add1.coef <- function(model,scope,test="F",p.value=1,order.by.p=FALSE) { num <- length(model$coefficients) add <- add1(model,scope,test=test) sub <-
2010 Jul 06
0
Add1 w/ coef estimates?
I was wondering if there is anyway to have Add1() display the coefficient estimates for each candidate predictor along with the F test. This is for lm() btw. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Add1-w-coef-estimates-tp2279662p2279662.html Sent from the R help mailing list archive at Nabble.com.
2010 Oct 15
1
specify data frame by name
I'd like to be able to specify a data frame by name in a function call. Any ideas how this can be done? dfm <- data.frame(x=1:10) testfunc <- function(data="dfm") { dat <- data sum(dat$x) } print(testfunc()) -- View this message in context: http://r.789695.n4.nabble.com/specify-data-frame-by-name-tp2996534p2996534.html Sent from the R help mailing list archive at