Re: [R] exact string match?

2009-10-30 Thread Linlin Yan
How about using operator == On Sat, Oct 31, 2009 at 5:00 AM, bamsel benam...@gmail.com wrote: Dear R users: I need to compare character strings stored in 2 separate data frames. I need an exact match, so finding a in animal is no good. I've tried regexpr, match, and grepl, but to no avail.

Re: [R] Multiple linear regression with constraint (imposition)

2009-10-30 Thread David Winsemius
On Oct 30, 2009, at 7:47 PM, CE.KA wrote: Sorry there was a mistake: I could not see what was different? Hi R users I want to do a multiple linear regression with R With a normal model (Y=Cste+A1*X1+A2*X2) the program would be lm(Y~X1+X2) My model is Y=Cste+A1*X1+A2*X2 with the

Re: [R] possible memory leak in predict.gbm(), package gbm ?

2009-10-30 Thread Ridgeway, Greg
All of the memory allocations for predictions use R's allocVector(). See gbm_pred in gbmentry.cpp. That is, R's memory manager is doing all the work. gbm_pred is not allocating memory separate from R. It's just creating R objects within R that can be deleted or garbage collected. Make sure

[R] Johnson-Neyman procedure (ANCOVA)

2009-10-30 Thread Stropharia
Dear R users, Does anyone know of a package that implements the Johnson-Neyman procedure - for testing differences among groups when the regression slopes are heterogeneous (in an ANCOVA model)? I did not get any matches for functions when searching using R Site Search. If it has not been

[R] Stratified Maximum Likelihood

2009-10-30 Thread Noah Silverman
Hi, I've search rseek.org high and low and can't seem to find an answer to this. I want to maximize likelihood for a set of training data, but the data is grouped. (Think multiple trials.) It would probably be possible to do this with some nested for loops manually, but would be painfully

[R] Formula with in memory data.frame

2009-10-30 Thread rkevinburton
I have an array of data.frame(s) that I would like to smooth with loess one at a time. the array is master and the two variable that I am interested in is Period and Quantity. So my first attempt at calling loess is: loess(Quantity ~ Period, master[[i]]) But I get the following error: Error:

[R] Plots with k-means

2009-10-30 Thread Iuri Gavronski
Hi, I'm doing a k-means cluster with 6 clusters and 15 variables. Any suggestions on how to plot the results? I've tried the standard xy plot, but couldn't get much of it. Thansk in advance, Iuri. __ R-help@r-project.org mailing list

Re: [R] Multiple linear regression with constraint (imposition)

2009-10-30 Thread Ravi Varadhan
Simply do this: lm(y ~ I(X1 - X2)) Ravi. Ravi Varadhan, Ph.D. Assistant Professor, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu

<    1   2