search for: ulam

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

Did you mean: lam
2007 Jul 08
1
generating a data frame with a subset from another data frame
R gurus, I have a data set that looks something like this: Site Species DBH #Vines G PLOC 45.9 4 G ACNE 23.3 1 G ACNE 12.0 0 G FRAM 35.9 5 G AEGL 11.2 2 N PLOC 77.3 12 N JUNI 78.6 7 N ACNE 18.9 1 N ACNE 15.7 3 N ACRU 35.5 4 H ACSA2 24.1 6 H ULAM 35.2 7 There are 730 individual trees (22 species) from four sites in the actual data set. I would like to create a second data frame that contains just the most common species (mainly ACNE, PLOC, ULAM, FRAM, and ACSA2). Here's some of my attempts: >study.1<-subset(study,study$...
2011 Feb 17
1
cv.glmnet errors
...st) : argument is of length zero If i change the number of folds to 1, i get a seg fault: *** caught segfault *** address 0x0, cause 'memory not mapped' Traceback: 1: .Fortran("lognet", parm = alpha, nobs, nvars, nc, as.double(x), y, offset, jd, vp, ne, nx, nlam, flmin, ulam, thresh, isd, maxit, kopt, lmu = integer(1), a0 = double(nlam * nc), ca = double(nx * nlam * nc), ia = integer(nx), nin = integer(nlam), nulldev = double(1), dev = double(nlam), alm = double(nlam), nlp = integer(1), jerr = integer(1), PACKAGE = "glmnet") 2: lognet(x,...
2011 Oct 27
1
Question about .Fortran in glmnet package
...ample, the lognet.R file includes the lines of code shown below. But how can I see the Fortran code that is being referenced in the code below? Is that provided somewhere in the package source code? .Fortran("lognet", parm=alpha,nobs,nvars,nc,as.double(x),y,offset,jd,vp,ne,nx,nlam,flmin,ulam,thresh,isd,maxit,kopt, lmu=integer(1), a0=double(nlam*nc), ca=double(nx*nlam*nc), ia=integer(nx), nin=integer(nlam), nulldev=double(1), dev=double(nlam), alm=double(nlam), nlp=integer(1), jerr=intege...
2007 Jul 31
2
choosing between Poisson regression models: no interactions vs. interactions
...ffman Dam 2.725193 0.249423 10.926 < 2e-16 *** SiteNarrows 1.902987 0.227599 8.361 < 2e-16 *** SiteSugar Creek 1.752754 0.242186 7.237 4.58e-13 *** SpeciesFRAM 0.955468 0.157423 6.069 1.28e-09 *** SpeciesPLOC 1.187903 0.141707 8.383 < 2e-16 *** SpeciesULAM 0.340792 0.184615 1.846 0.0649 . DBH 0.020708 0.001292 16.026 < 2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 (Dispersion parameter for poisson family taken to be 1) Null deviance: 1972.3 on 544 degrees of freedom Residual devia...
2007 Aug 31
1
Strange behavior using subset
...es: > 1: longer object length > is not a multiple of shorter object length in: is.na(e1) | is.na(e2) > 2: longer object length > is not a multiple of shorter object length in: `==.default` > (Species, c("ACNE", "ACSA2", "JUNI", "PLOC", "ULAM")) If I then only select for two species instead of five, the error messages disappear HOWEVER, the data will be cut in half, so the new data frame only contains 13 records of species 1 (instead of 26 as in the original) and 12 records of species 2 (instead of the original 24). This...
2009 Apr 07
1
R segfaulting with glmnet on some data, not other
...g traceback before it gets to the point in the code where it dumps out solutions at all: *** caught segfault *** address (nil), cause 'memory not mapped' Traceback: 1: .Fortran("elnet", ka, parm = alpha, nobs, nvars, as.double(x), y, weights, jd, vp, ne, nx, nlam, flmin, ulam, thresh, isd, lmu = integer(1), a0 = double (nlam), ca = double(nx * nlam), ia = integer(nx), nin = integer(nlam), rsq = d ouble(nlam), alm = double(nlam), nlp = integer(1), jerr = integer(1), PACK AGE = "glmnet") 2: glmnet(xstd$sdat, ystd$sdat, family = c("gaussian&...