similar to: Resources for optimizing code

Displaying 20 results from an estimated 8000 matches similar to: "Resources for optimizing code"

2003 Mar 14
2
numbers and decimal points
I have a question for our European readers: how common is it to use commas as decimal points in spread-sheet and statistics applications? Is it an inconvenience to require that all data use a period as decimal point? (i.e., 3.14159 rather than 3,14159). We're trying to make our program as foolproof as possible, and would prefer not to give users a chance to have commas as both decimal
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how exit of tcl for close an aplication. How to use him. Thank
2004 May 04
3
increasing memory
Hi. I want to use R with very large files, a couple hundred megabytes, but R crashes every time that I try. Reading help files seems to indicate that R ought to manage its memory itself. I know I have enough memory since stata handles these files perfectly well. I have a mac running OS 10.3 and am running RAqua 1.8.1. Is there anything I can do to make it deal with these files successfully?
2009 Aug 18
1
Strange package installation error
Hi. I'm trying to install a new package. I'm a relatively long-time (though not advanced) R user and have never seen this error before. For the first example, I tried a few different CRAN mirrors. In the second example, the file does exist; I downloaded it from the CRAN website for the package and pasted in the name exactly a few different times to make sure it was right. >
2003 Mar 10
4
terms.formula
I'm in the very initial stage of expanding the formula processing in my quantile regression function rq() to handle additive nonparametric components, say qss(x), or qss(x,z). I need some advice about strategy for formula processing. My initial foray was to use: terms(formula,specials="qss") and then modify the components of the resulting terms.object. But in changing formula
2003 Apr 01
1
Windows GUI palimpsest
Windows (both XP and 98) seems to have a problem with our GUI, written using R's tcl/tk package. When we open another window, and then return to the GUI, the GUI has old pieces of text left from the previous windows and/or places which are cut off where a window had been. Also, when it computes something, the window will often decide to move itself over for no apparent reason, so it moves
2003 Apr 08
2
quotes within quotes
How does one put quotes within quotes, if it's possible? I've tried replacing one set of the quotes by single quotes. If it's not possible, is there any way to do the following? > cmd <- "read.dta" > opt <- "convert.factors=FALSE" > data.file <- " file="/full/path/name.dta" " > eval(call(cmd,data.file,opt)) Prior to
2006 Jun 23
2
Tetrachoric correlation in R vs. stata
I hope someone here knows the answer to this since it will save me from delving deep into documentation. Based on 22 pairs of vectors, I have noticed that tetrachoric correlation coefficients in stata are almost uniformly higher than those in R, sometimes dramatically so (TCC=.61 in stata, .51 in R; .51 in stata, .39 in R). Stata's estimate is higher than R's in 20 out of 22
2003 Apr 08
2
use of variable labels
The R documentation for some of the foreign package's functions says that the set of variable labels becomes attributes in the resulting data frame. Thus, e.g., 5="strongly agree", 4="agree", etc. I'm happy that the labels are being passed, but unfortunately, when R summarizes the data, it will list it only as categories, and doesn't deal with the
2003 Feb 27
1
R problems
Hi. I have an ibook G3/800 running 10.2.4, with Mac's X11. Up until a few days ago, R was working fine but recently it stopped working. The error I get is: dyld: /usr/local/lib/R/bin/R.bin version mismatch for library: /usr/lib/libncurses.5.dylib (compatibility version of user: 6.0.0 greater than library's version: 5.0.0) Trace/BPT trap which seems to imply that it wants a higher
2005 May 17
1
install.packages parameters
Hello. R is having some trouble installing a package because it passed arguments to gcc which were non-existent directories and files. It also didn't find g77, although it's in a directory in my $PATH; I tricked it by making a sym link in /usr/bin. What file does R get these parameters from? I've looked for the parameters in the package source, the install.packages help
2006 Aug 04
1
polychoric correlation error
Dear all, I get a strange error when I find polychoric correlations with the ML method, which I have been able to reproduce using randomly-generated data. What is wrong? I realize that the data that I generated randomly is a bit strange, but it is the only way that I duplicate the error message. > n<-100 > test.x<-rnorm(n, mean=0, sd=1) > test.c<-test.x + rnorm(n, mean=0,
2006 Aug 21
2
polychor error
Hi. Does anyone know whether the following error is a result of a bug or a feature? I can eliminate the error by making ML=F, but I would like to see the values of the cut-points and their variance. tmp.vec<-c(0, 0, 0 , 0 ,0 , 1, 0, 2, 0 , 0, 5 ,5 ,3 ,1, 0 , 1, 5, 10, 27, 20, 9, 0, 1, 1, 12, 29, 57, 34, 0, 0, 1, 2, 11, 31, 32) tmp.mat<-matrix(tmp.vec, nrow=7)
2003 Apr 02
4
randomForests predict problem
Hello everybody, I'm testing the randomForest package in order to do some simulations and I get some trouble with the prediction of new values. The random forest computation is fine but each time I try to predict values with the newly created object, I get an error message. I thought I was because NA values in the dataframe, but I cleaned them and still got the same error. What am I
2009 May 18
1
Predicting complicated GAMMs on response scale
Hi, I am using GAMMs to show a relationship of temperature differential over time with a model that looks like this:- gamm(Diff~s(DaysPT)+AirToC,method="REML") where DaysPT is time in days since injury and Diff is repeat measures of temperature differentials with regards to injury sites compared to non-injured sites in individuals over the course of 0-24 days. I use the following
2005 Oct 11
3
Dual PRI fail over
I currently have a single PRI however we are getting a second PRI, and the provider (qwest) wants to know if our PBX supports GSAS (they say its a redundant d-channel technology but searching on google for GSAS reveals less than nothing). I've set something similar up before on a cisco 5350, where if one of the PRIs fails, all of the calls destined for either PRI will be routed down the one
2003 Mar 11
0
different file types
You might look at "eval" and "parse". Reid Huntsinger -----Original Message----- From: Spencer Graves [mailto:spencer.graves at pdf.com] Sent: Tuesday, March 11, 2003 4:03 PM To: janet rosenbaum Cc: r-help Subject: Re: [R] different file types The command "'source' causes R to accept its input from the named file". I don't know what you mean by
2007 Feb 27
3
rpart minimum sample size
Is there an optimal / minimum sample size for attempting to construct a classification tree using /rpart/? I have 27 seagrass disturbance sites (boat groundings) that have been monitored for a number of years. The monitoring protocol for each site is identical. From the monitoring data, I am able to determine the level of recovery that each site has experienced. Recovery is our
2001 Sep 14
3
R Installation problem: 'make check' errors
Hi All, I'm trying to install R from source on an Intel machine running Linux (RedHat 6.2) and I am getting errors (Error 139, Error 2, and Error 1) on 'make check'. Perhaps I've forgotten something basic? --------------------------------------------------------------------- Here's what I've done: /configure --prefix=/home1/froth/R --enable-R-shlib --with-tcltk
2008 Apr 18
1
configure can't find dgemm in MKL10
Hi, I'm trying to follow the R-admin instructions for using MKL10 as the external BLAS compiling R-2.6.2 under Linux on a RH EL head node of a cluster. The configure process seems to have problems when it checks for dgemm in the BLAS. I'm using configure as: ./configure CC=icc F77=ifort --with-lapack="$MKL" --with-blas="$MKL" where $MKL is defined as in R-admin