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
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
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
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
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
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
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
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
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