similar to: vectorization question

Displaying 20 results from an estimated 800 matches similar to: "vectorization question"

2004 Mar 26
1
Mahalanobis
Dear all Why isn'it possible to calculate Mahalanobis distances with R for a matrix with 1 row (observations) more than the number of columns (variables)? > mydata <- matrix(runif(12,-5,5), 4, 3) > mahalanobis(x=mydata, center=apply(mydata,2,mean), cov=var(mydata)) [1] 2.25 2.25 2.25 2.25 > mydata <- matrix(runif(420,-5,5), 21, 20) > mahalanobis(x=mydata,
2004 Jun 03
5
Confidence intervals for predicted values in nls
Dear all I have tried to estimate the confidence intervals for predicted values of a nonlinear model fitted with nls. The function predict gives the predicted values and the lower and upper limits of the prediction, when the class of the object is lm or glm. When the object is derived from nls, the function predict (or predict.nls) gives only the predicted values. The se.fit and interval aguments
2002 Feb 01
1
Different behaviour in Linux and Windows (PR#1293)
Hi I have written a small function to calculate distances between pairs of landmarks ('my.dist' bellow). I gave it to a colleague that works with MSWindows and the function doesn't give the right answer: R 1.4.1 for Linux: > my.dist() [1] 22 561 R 1.4.1 for Windows: > my.dist() [1] 22 560 Warning message: Replacement length not a multiple of the elements to replace in
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
On Tue, 03 Oct 2000 10:55:28 +0000, Alberto Murta <amurta at ipimar.pt> wrote: > And objectively, it's a fact that "<-" >makes the code easier to read than "_". I don't follow this argument. Underscore isn't used anywhere else in the language, so when you see one, you know it's an assignment. On the other hand, both "<" and
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
> Date: Tue, 03 Oct 2000 14:45:32 +0000 > From: Alberto Murta <amurta at ipimar.pt> > > Duncan Murdoch wrote: > > > I don't follow this argument. Underscore isn't used anywhere else in > > the language, so when you see one, you know it's an assignment. On > > the other hand, both "<" and "-" have multiple other uses.
2004 Mar 04
10
"Statistiques avec R"
Dear R users, I want to share my joy with you. Please see the following excellent introduction to R "Statistiques avec R " by Vincent Zoonekynd http://zoonek2.free.fr/UNIX/48_R/all.html In paticular, you can see a lot of fascinating graphics examples of R from which you can get many hints. Soryy if this is already well-known, but the CRAN search did not show nothing with the keyword
2002 Jan 24
1
using names inside a loop
I expected that something like > for(i in names(my.data.frame)){j <- as.name(i); print(my.data.frame$j)} should work in R (and S). There's always the possibility of using > for(i in names(my.data.frame)){print(my.data.frame[,i])} but can someone someone tell me why doesn't the 1st option work also? Thanks Alberto -- Alberto G. Murta
2002 Apr 29
1
masking functions
Dear all I was writing some code that needed functions from packages 'MASS' and 'CircStats', and I received a warning saying that the function 'eqscplot' in one of the packages was masked by another 'eqscplot' from the other package (in fact 'eqscplot' from 'CircStats' seems a short version of 'eqscplot' from 'MASS'). This masking of
2008 Jan 09
2
Two dependent variables in formula
Hello, I' m trying to change the formula in the rpart function. The format of a general formula is Answer ~ expression, where Answer is the dependent variable and expression is set of terms containing the independent variables and separated by operators. I want the response of the formula is more than one dependent variable. It is possible?
2007 Aug 28
1
Age-Length key with kimura algorith
Se ha borrado un texto insertado con un juego de caracteres sin especificar... Nombre: no disponible Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070828/6641b572/attachment.pl
2006 Jun 28
1
Very slow read.table on Linux, compared to Win2000 [Broad cast]
From: Peter Dalgaard > > <davidek at zla-ryba.cz> writes: > > > Dear all, > > > > I read.table a 17MB tabulator separated table with 483 > > variables(mostly numeric) and 15000 observations into R. > This takes a > > few seconds with R 2.3.1 on windows 2000, but it takes > several minutes > > on my Linux machine. The linux machine is
2000 Apr 28
3
Matrix inverse
I haven't found a function that directly calculates the matrix inverse, does it exist? Otherwise what would be the fastest way to do it? Patrik Waldmann -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the
2003 Jan 24
4
memory problems
Hi I'm computing a bca interval using bca.ci from the boot package. When I try to use this I get an error > library(boot) > boot(logglm.data,boot.fishpower,2500,coef.vec=coeflm.vec)->blm8901 > bca.ci(blm8901,index=29) Error: cannot allocate vector of size 456729 Kb However my machine has 2GB of memory and without R running I only have 112M of memory used. Is there something
2004 Mar 09
4
help
Hello, I am a new member, and I need your help. For my work (thesis), I use the package rpart to construct trees. But, to continu my studies, I need to calcule the 'variable importance'. But, I don't find a program to do this in the implementation of R. Is there someone who know if there exist a program which calculate the 'variable importance', notion defined by Breiman and
2003 Jul 03
2
unlist
Hi I have a list with several data.frames, all with the same number of colunms but different number of rows, and I'd like to transform this list into a single dataframe. I need to mimic an rbind of all dataframes ... Transform doesn't seem to work :-( Thanks EJ -- Ernesto Jardim <ernesto at ipimar.pt> Bi?logo Marinho/Marine Biologist IPIMAR - Instituto Nacional de Investiga??o
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
> From: dmurdoch at pair.com (Duncan Murdoch) > Date: Tue, 03 Oct 2000 12:31:32 GMT > > On Tue, 03 Oct 2000 10:55:28 +0000, Alberto Murta <amurta at ipimar.pt> > wrote: > > > And objectively, it's a fact that "<-" > >makes the code easier to read than "_". > > I don't follow this argument. Underscore isn't used
2007 Oct 11
2
R260 cross-compilation
Hi, I'm trying to cross compile R260 in a ubuntu 6.06 linux. I downloaded the Makefile for 251 and simply replaced the R version by 260. However I'm getting an error about mingw. ernesto at gandalf:~/ipimar/devel/R/ccompile260$ make R export
2003 Apr 03
3
How to organize/develop an R function
Hi Maybe this is not an issue about R. It's probably a programming issue and I am not a developer at all. Anyway my main developing activities are in R and that's where I have difficulties. When I develop a function or group of functions I lose eternities with the objects attributes and classes. I do a lot of object manipulation (lists to arrays, factors to numeric vectors, etc, etc) so
2007 Jan 11
1
warning in GAM
Hello, I have a problem when doing gam (from gam library; I am using R 2.4.0, windows xp platform) When doing: example(gam) There is this error message (which also happens when using my data) .... Warning: a final empty element has been omitted the part of the args list of 'list' being evaluated was: (coefficients = fit$beta, residuals = fit$y - fit$eta, fitted.values = fit$eta,
2003 Sep 09
2
Matrix resampling (bootstraps)
Dear all, I am trying to generate bootstrap replicate matrixes (rows=samples, column=species, sampling with replacement) from a matrix dataset, but I do not know how to do it in R. I have tried boot() and bootstrap(), but they require an statistic, which in my case is cluster analysis (generating bootstrap values for a cluster analysis is a topic that has been mentioned previously in