Re: [R] Proportion test in three-chices experiment

2005-07-18 Thread NOEL Yvonnick
Rafael, when testing binomial hypotheses with both repeated measures and inter-group factors, you should make explicit your model on the intra-subject part of the data. You can't do Chi-square comparisons on count data that mix independent and dependent measures. But you can define a

[R] Re: point-biserial correlation

2003-03-31 Thread Noel Yvonnick
has anyone written a package/function in R for computing a point- biserial resp. biserial correlation? Note that the point-biserial correlation is nothing but the standard correlation coefficient when one of the variables is dichotomous, so that cor(.) is OK. The biserial is different and

Re: [R] Solving Systems of Non-linear equations

2005-12-01 Thread NOEL Yvonnick
On 11/30/05, Scott Story [EMAIL PROTECTED] wrote: I am trying to write a function that will solve a simple system of nonlinear equations for the parameters that describe the beta distribution (a,b) given the mean and variance. mean = a/(a+b) variance = (a*b)/(((a+b)2) * (a+b+1)) Any help as

[R] as.numeric(.1)

2007-01-24 Thread NOEL Yvonnick
Hello, I noticed the following strange behavior under R-2.4.0 (Linux Mandriva 2007) : options(OutDec) $OutDec [1] . as.numeric(.1) [1] NA Warning message: NAs introduits lors de la conversion automatique as.numeric(,1) [1] 0,1 So I need to use the comma as the decimal separator, at

Re: [R] as.numeric(.1) + SessionInfo

2007-01-24 Thread NOEL Yvonnick
as.numeric(,1) NOEL [1] 0,1 Instead of the output below, can you please give the full sessionInfo() output? Here it is: R version 2.4.0 (2006-10-03) i686-pc-linux-gnu locale: fr_FR.UTF-8 attached base packages: [1] methods stats graphics grDevices utils

[R] as.numeric(.1) under RGtk2

2007-01-24 Thread NOEL Yvonnick
Prof Brian Ripley a écrit : I can reproduce this via Sys.setlocale(LC_NUMERIC, fr_FR) [1] fr_FR Warning message: setting 'LC_NUMERIC' may cause R to function strangely in: setlocale(category, locale) as.numeric(,1) [1] 0,1 as.numeric(.1) [1] NA Warning message: NAs introduced by

[R] Sys.setlocale(LC_CTYPE,fr_FR.UTF-8)

2007-03-11 Thread NOEL Yvonnick
Dear R users, I'm trying to have a gWiddgetsRGtk2 script run under R-2.4.1. The script run OK under Linux but all accentuated characters appear as ? when the script is run under Windows. As Gtk+ requires UTF-8, I thought it was the source of the problem and tried to change the default

Re: [R] Mandriva Spring 2007 and R

2007-06-06 Thread NOEL Yvonnick
Jonathan, If you are not willing to use the very last version of R, there is always a RPM package for R under Mandriva, called R-base. So that basically, connected as root, just type: urpmi R-base to install it. HTH, Yvonnick Noel U. of Rennes 2

[R] Search a function name in a string

2007-07-03 Thread NOEL Yvonnick
Hello, I am trying to find a function name in a string that expresses a functional form : s = blabla...S(var)...blabla I would like to detect the pattern S(*) in s. I am no guru at regular expressions. Just tried : grep(S(.*),c(S(a),CSP)) [1] 1 2 I expected the pattern to be retrieved