[R] sampling with weights

2004-05-05 Thread r.ghezzo
Hello, I am trying to produce an example of weighted sampling vs uniform sampling, the subject is estimation of the size distribution by sampling from a micrograph with a graticule of points. The sampling obtained is thus area weighted. I created a distribution by pop <- rexp(1000)+rexp(1000)+re

[R] problem with unlist

2004-02-23 Thread r.ghezzo
Hello, I try to compute means,sd,n from a variable y according to some categoricals g1,g2... I wrote the following function: msd<-function(y,...) { print(match.call()) funy<-function(x) list(mean(x,na.rm=T),sd(x,na.rm=T),table(is.na(x))[1]) gg <- list(...) aa<-by(y,gg,funy) bb<-matr

Re: [R] how to use try()

2004-02-10 Thread r.ghezzo
in this case is coef(), as in coef(lo)[4] On Mon, 09 Feb 2004 14:30:07 -0500 "r.ghezzo" <[EMAIL PROTECTED]> wrote: Hello, I have a program with this section: .. for(i in 1:20){ lo <- nls(y~y0+a/(1+(x/x0)^b),start=list(y0=0.1,a=a0,x0=x00,b=-8.1)) beta[i] <- lo$m$getPars()[4] }

[R] how to use try()

2004-02-09 Thread r.ghezzo
Hello, I have a program with this section: .. for(i in 1:20){ lo <- nls(y~y0+a/(1+(x/x0)^b),start=list(y0=0.1,a=a0,x0=x00,b=-8.1)) beta[i] <- lo$m$getPars()[4] } .. If the fit works this is OK but if the fit fails, the whole program fails so: .. for(i in 1:20){ try(lo <- nls(y~y0+a/(1+(x/x0

[R] problems with Affy

2003-10-24 Thread r.ghezzo
I just downloaded Affy in R 1.8, Also downloaded Biobase,reposTools,tkWidgets,genefilter. when called > library(affy) Error in bindingIsLocked(m2, where) : not an environment Error in bindingIsLocked(m2, where) : not an environment Error in getClass(Class, where = topenv(parent.frame())) :

RE: [R] RODBC and Excel in Widows

2003-03-26 Thread r.ghezzo
HI, no sorry, so far nobody answer. So it probably does not have a solution. Excell is from you.know.who >= Original Message From Meinhard Ploner <[EMAIL PROTECTED]> = >Hello! >Did you resolve the problem? >I'm interested in the solution, too. >Meinhard > >On Thursday, March 13, 2003, a