Re: [R] How to extract function arguments literally

2005-04-30 Thread Peter Dalgaard
Shigeru Mase [EMAIL PROTECTED] writes: But, if it has no quotation marks or contains spaces, it yileds an error. as.character(substitute((def x1 x2)) Error: syntax error He wants to use the syntax like lc((def x1 x2)), not like lc((def x1 x2)). This is not possible. R expressions

Re: [R] How to extract function arguments literally

2005-04-30 Thread Duncan Murdoch
Shigeru Mase wrote: But, if it has no quotation marks or contains spaces, it yileds an error. as.character(substitute((def x1 x2)) Error: syntax error He wants to use the syntax like lc((def x1 x2)), not like lc((def x1 x2)). No, that wouldn't be possible. Since lc((def x1 x2)) is not legal S

Re: [R] Warning from Rcmd check - data could not find data set

2005-04-30 Thread Prof Brian Ripley
On Fri, 29 Apr 2005, Kjetil Brinchmann Halvorsen wrote: This is rw2010 from CRAN. When running Rcmd check on a package I get: Warning in utils::data(list = al, envir = data_env) : data set 'vowel.test' not found Warning in utils::data(list = al, envir = data_env) : data set 'vowel.train' not

Re: [R] R2.1.0: X11 font at size 14 could not be loaded

2005-04-30 Thread Prof Brian Ripley
On Fri, 29 Apr 2005, Xiang-Jun Lu wrote: [...] As stated previously, this error does not occur with R2.0.1 on the same machine. Any clue re what could be wrong with my setting? For my purpose, R2.0.1 is sufficient, but it would be nice to get this problem solved. We have already explained that

Re: [R] Memory consumption, integer versus factor

2005-04-30 Thread Duncan Murdoch
Ajay Narottam Shah wrote: R is so smart! I found that when you switch a column from integer to factor, the memory consumption goes down rather impressively. Now I'd like to learn more. How does R do this? What does R do? Most numeric variables are stored as 8 byte doubles. Factors are stored as

[R] (sin asunto)

2005-04-30 Thread Revilla,AJ (pgt)
Dear all, I am fitting a nonlinear mixed-effects model from a balanced panel of data using nlme. I would like to know whay would be the best options for formally testing for autocorrelation. Is it possible to carry out a Durbin-Watson test on a nlme object? As far as I've seen, I think the

[R] User-defined random variable

2005-04-30 Thread Paul Smith
Dear All I would like to know whether it is possible with R to define a discrete random variable different from the ones already defined inside R and generate random numbers from that user-defined distribution. Thanks in advance, Paul __

Re: [R] User-defined random variable

2005-04-30 Thread Peter Dalgaard
Paul Smith [EMAIL PROTECTED] writes: Dear All I would like to know whether it is possible with R to define a discrete random variable different from the ones already defined inside R and generate random numbers from that user-defined distribution. Yes. One generic way is to specify the

Re: [R] User-defined random variable

2005-04-30 Thread Achim Zeileis
On Sat, 30 Apr 2005, Peter Dalgaard wrote: Paul Smith [EMAIL PROTECTED] writes: Dear All I would like to know whether it is possible with R to define a discrete random variable different from the ones already defined inside R and generate random numbers from that user-defined

Re: [R] Windows List of Folders?

2005-04-30 Thread Robert Gentleman
Hi, We have some documentation of the file handling capabilities, among other things, at http://www.bioconductor.org/develPage/develPage.html comments, improvements etc welcome. Best wishes, Robert On Apr 29, 2005, at 4:01 PM, Henrik Bengtsson wrote: Example: path -

RE: [R] R-2.1.0 search engine works with mozilla browser but notfirefox

2005-04-30 Thread Marc Schwartz
On Sat, 2005-04-30 at 06:32 +0100, Prof Brian Ripley wrote: On Fri, 29 Apr 2005, Marc Schwartz wrote: On Fri, 2005-04-29 at 13:04 -0700, Waichler, Scott R wrote: I did find that there seems to be at least four CRAN packages: 1. PHYLOGR 2. sfsmisc 3. survrec 4. vardiag that

[R] formula in fixed-effects part of GLMM

2005-04-30 Thread weihong
Can GLMM take formula derived from another object? foo - glm (OVEN ~ h + h2, poisson, dataset) # ok bar - GLMM (OVEN ~ h + h2, poisson, dataset, random = list (yr = ~1)) #error bar - GLMM (foo$formula, poisson, dataset, random = list (yr = ~1)) #Error in foo$(formula + yr + 1) : invalid

[R] Test for autocorrelation in nlme model

2005-04-30 Thread Revilla,AJ (pgt)
Dear all, I am fitting a nonlinear mixed-effects model from a balanced panel of data using nlme. I would like to know whay would be the best options for formally testing for autocorrelation. Is it possible to carry out a Durbin-Watson test on a nlme object? As far as I've seen, I think the

Re: [R] Test for autocorrelation in nlme model

2005-04-30 Thread Spencer Graves
Have you reviewed Pinheiro and Bates (2000) Mixed-Effects Models in S and S-PLUS (Springer)? They provide examples with diagnostic plots, confidence intervals and likelihood ratio tests in sec. 5.3, for example. spencer graves Revilla,AJ (pgt) wrote: Dear all, I am fitting a

[R] legend(): how to put variable in subscript?

2005-04-30 Thread Aleksey Naumov
Dear List, I would like to plot a simple legend with two math expressions, e.g. plot(0) legend(1, 0.5, expression(sigma[i], sigma[j])) The difficulty is that i and j should be variables rather than strings i and j. In other words I'd like to do something like: i = A j = B legend(1, 0.5,

[R] eigen() may fail for some symmetric matrices, affects mvrnorm()

2005-04-30 Thread Jouni Kerman
Hi all, Recently our statistics students noticed that their Gibbs samplers were crashing due to some NaNs in some parameters. The NaNs came from mvrnorm (Ripley Venables' MASS package multivariate normal sampling function) and with some more investigation it turned out that they were