search for: reslist

Displaying 5 results from an estimated 5 matches for "reslist".

Did you mean: resist
2003 Oct 27
2
problem using do.call and substitute for predict.glm using poly()
...ch contain a glm object But R throws up the following error: Error in poly(Alk1, degree = 2, coefs = structure(list(alpha = c(37.7515662650602, : Object "Alk1" not found When trying to evaluate the following code: pAsgn <- paste("predList[[i]][[n]] <- try(predict(resList$Y$X, newdata = data.frame(X = predData$X), type = 'response', se = TRUE))") pAsgn <- parse(text = pAsgn)[[1]] for (i in namY) { for (n in namX) { TAsgn <- do.call("substitute", list(pAsgn, list(n = n, i = i, X = as.name(n), Y = as.name(i))))...
2012 Feb 03
2
Assigning objects to variable and variable to list in a for loop
Hello, I want to use a for loop for repeadely calculating a maxent model (package dismo, function maxent()) which creates an object of the class maxent (S4). I want to collect all the resulting object in a list. I tried to simplify my for loop to explain what I want. There are two problems/questions: 1) How can I create the new variables in the loop (using paste) and assign the objects 2) How
2012 Nov 14
2
Macro Variable in R
I have over 300 variables in my table. I want to choose only a handful of those variables to run through many procedures. Lm(), glm() etc..i have over 10 procedures that i need to run those variables everytime. Those handful of variables can change everytime if output is satisfactory or not. I have done this in SAS. Now i need to know how to do this in R. Any help or even if someone can point to
2007 Sep 23
4
nls fits by groups
Dear Colleagues, I am trying to estimate several non-linear models simultaneously. I don't want to use non-linear mixed model, but non-linear model with same form, but it should be estimated separately according to variable group (I have lots of groups that have lots of observations....). I would like to have unique parameters for each group. e.g. something like this mod <- nls(y ~
2011 Jan 26
2
Dealing with R list objects in C/C++
Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under tests/Embedding, but can't figure out the correct way. Below is my code snippet: #include <Rinternals.h> // Rf_initEmbeddedR and other setups already performed