[R] CCA no scores for some constraining variables

2014-02-01 Thread Paresys, Lise
Dear all, I am performing a CCA using vegan package, function cca. Data loaded are fine (presence-absence data) but when using cca function it seems some constraining variables are not taken into account. While asking for the summary of the CCA: - they appear in call:cca(formula = etc.). - but

[R] Avoid using eval in a neat way

2014-02-01 Thread Hai Qian
I know using eval is not optimal and maybe bad, but how to avoid using eval in the following example func1 - function(dat, eval.this) { eval(parse(text = paste0(with(dat, , eval.this, } dat - data.frame(x = 1:2, y = 2:3) func1(dat, x*2+y) func1(dat, sin(x)*cos(y)) Here eval.this is a

Re: [R] Avoid using eval in a neat way

2014-02-01 Thread Ista Zahn
This has been discussed extensively, on this list as well as elsewhere. I suggest doing a web search, read up on the issue, and post back here only if you have specific questions that are not answered already. Best, Ista On Sat, Feb 1, 2014 at 11:40 AM, Hai Qian hq...@gopivotal.com wrote: I

Re: [R] Avoid using eval in a neat way

2014-02-01 Thread Hai Qian
I have been searching around for some time, but with no luck for this particular problem. -- *Pivotal http://www.gopivotal.com/* A new platform for a new era On Sat, Feb 1, 2014 at 9:02 AM, Ista Zahn istaz...@gmail.com wrote: This has been discussed extensively, on this list as well as

Re: [R] Avoid using eval in a neat way

2014-02-01 Thread Jeff Newmiller
You have set up your criteria for success to be that your user has full freedom to specify code in strings to evaluate. Then you ask how to achieve this goal without evaluating that code. Are you thinking objectively at all about your question? The advice to not use eval has a number of

Re: [R] Avoid using eval in a neat way

2014-02-01 Thread Duncan Murdoch
On 14-02-01 11:40 AM, Hai Qian wrote: I know using eval is not optimal and maybe bad, but how to avoid using eval in the following example func1 - function(dat, eval.this) { eval(parse(text = paste0(with(dat, , eval.this, } dat - data.frame(x = 1:2, y = 2:3) func1(dat, x*2+y)

Re: [R] Avoid using eval in a neat way

2014-02-01 Thread Hai Qian
Hi Jeff, Your answer is good. It makes me think that maybe I should revise some of my designs. Now I know that it is impossible to do this under my settings. Thanks On Sat, Feb 1, 2014 at 9:55 AM, Jeff Newmiller jdnew...@dcn.davis.ca.uswrote: You have set up your criteria for success to be

Re: [R] Avoid using eval in a neat way

2014-02-01 Thread Gabor Grothendieck
On Sat, Feb 1, 2014 at 11:40 AM, Hai Qian hq...@gopivotal.com wrote: I know using eval is not optimal and maybe bad, but how to avoid using eval in the following example func1 - function(dat, eval.this) { eval(parse(text = paste0(with(dat, , eval.this, } dat - data.frame(x = 1:2,

[R] predicted values

2014-02-01 Thread Felipe Carrillo
Consider this dummy dataset. My real dataset with over 1000 records has scatter large and small values. I want to predict for values with NA but I get negative predictions. Is this a normal behaviour or I am missing a gam argument to force the model to predict positive values. library(mgcv) test -

[R] meta data on infert data set

2014-02-01 Thread Aziz, Muhammad Fayez
Hi, I wanted to know what the following columns mean in the infert dataset: parity count matched set number 1-83 stratum number 1-63 Thank you, Fayez Urbana, IL, USA [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] meta data on infert data set

2014-02-01 Thread Jeff Newmiller
They appear to be technical terms relevant to fertility. You should probably ask someone with a background in medicine... or Google for these terms in conjunction with the word fertility. --- Jeff Newmiller

Re: [R] predicted values

2014-02-01 Thread Joshua Wiley
Dear Felipe, That is a normal behavior --- The prediction for that simple model decreases over time, and ends up negative. If the outcome cannot take on negative values, treating it as a continuous gaussian may not be optimal --- perhaps some transformation, like using a log link so that the

Re: [R] meta data on infert data set

2014-02-01 Thread David Winsemius
On Feb 1, 2014, at 6:32 PM, Jeff Newmiller wrote: They appear to be technical terms relevant to fertility. You should probably ask someone with a background in medicine... or Google for these terms in conjunction with the word fertility. Parity is the only technical term and its easy

Re: [R] Defining function help

2014-02-01 Thread Mathew Nagendran
ah, I see! Thanks you for the assistance! I can see how I went wrong. From: arun smartpink...@yahoo.com Sent: Friday, January 31, 2014 2:59 PM To: r-help@r-project.org Cc: Mathew Nagendran Subject: Re: [R] Defining function help Hi, Not sure if this is

[R] (no subject)

2014-02-01 Thread mohammad javad Azadchehr
Hi I want R code for bayesian CIF competing risks. best regards __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented,

Re: [R] (no subject)

2014-02-01 Thread Rolf Turner
On 02/02/14 15:37, mohammad javad Azadchehr wrote: Hi I want R code for bayesian CIF competing risks. best regards I want wealth, wisdom, good looks, and to play full forward for the Sydney Swans. cheers, Rolf Turner __ R-help@r-project.org

Re: [R] (no subject)

2014-02-01 Thread Jim Lemon
On 02/02/2014 01:37 PM, mohammad javad Azadchehr wrote: Hi I want R code for bayesian CIF competing risks. best regards Hi mohammad, Have a look at the SemiCompRisks package. Jim PS - You deserved Rolf's reply. __ R-help@r-project.org mailing list

[R] book on parallel programming

2014-02-01 Thread Norm Matloff
I'm about halfway finished writing a book titled, Parallel Computation for Data Science: with Examples in R and Beyond, to be published later this year by Chapman and Hall. I'm making a rough draft of the first half of the book available on the Web: