matthew wrote:
Hi, how can I solve a problem without the function t.test???
for example:
x-(1,3,5,7)
y-(2,4,6)
t.test(x,y,alternative=less,paired=FALSE,var.equal=TRUE,conf.level=0.95)
Homework?
Hints: Take out your statistics textbook and look up the formulas for
the two-sample t.
and do read the R-manual about how to make a vector
matthew wrote:
Hi, how can I solve a problem without the function t.test???
for example:
x-(1,3,5,7)
y-(2,4,6)
t.test(x,y,alternative=less,paired=FALSE,var.equal=TRUE,conf.level=0.95)
--
View this message in context:
On 23 Nov 2006, at 13:46, Peter Dalgaard wrote:
Robin Hankin [EMAIL PROTECTED] writes:
Hi
I have a vector x of length n. I am interested in x[1]
being different from the other observations (ie x[-1]).
[snip]
What arguments do I need to send to t.test() to test my null?
[snip]
There is no such thing as an unpaired t-test. A t-test can be a paired,
one sample or two sample t-test. Since you want to compare the sample
against a given mean, you need a one sample t-test. You tried to do a
two sample test. That didn't work because you need at least two
observations in each
Hello everybody
thanks for your advice here.
I think I'm getting tangled up.
If I use Thierry's test on iid Gaussian data,
the returned p-value should be uniform(0,1),
right?
OK,
R f - function(x){t.test(x=x[-1],mu=x[1])$p.value}
R hist(replicate(1000,f(rnorm(5
This is very skewed
ONKELINX, Thierry [EMAIL PROTECTED] writes:
There is no such thing as an unpaired t-test. A t-test can be a paired,
one sample or two sample t-test. Since you want to compare the sample
against a given mean, you need a one sample t-test. You tried to do a
two sample test. That didn't work
Robin Hankin [EMAIL PROTECTED] writes:
Hi
I have a vector x of length n. I am interested in x[1]
being different from the other observations (ie x[-1]).
My null hypothesis is that x[1]
is drawn from a Gaussian distribution of the same
mean as observations x[-1], which are assumed
to
On Thu, 23 Nov 2006, ONKELINX, Thierry wrote:
There is no such thing as an unpaired t-test. A t-test can be a paired,
one sample or two sample t-test. Since you want to compare the sample
against a given mean, you need a one sample t-test. You tried to do a
two sample test. That didn't work
On Thu, 23 Nov 2006, Peter Dalgaard wrote:
Robin Hankin [EMAIL PROTECTED] writes:
Hi
I have a vector x of length n. I am interested in x[1]
being different from the other observations (ie x[-1]).
My null hypothesis is that x[1]
is drawn from a Gaussian distribution of the same
mean
23 Nov 2006 14:48:31 +0100, Peter Dalgaard [EMAIL PROTECTED]:
ONKELINX, Thierry [EMAIL PROTECTED] writes:
There is no such thing as an unpaired t-test. A t-test can be a paired,
one sample or two sample t-test. Since you want to compare the sample
against a given mean, you need a one
Hi,
seems as if you want to test if a single subject is a member of a population
from which you have drawn a sample. This question has been addressed by Payne
Jones and Crawford and collaborators. You should have a look at their
articles in case that I interpreted your null-hypothesis and
Roth, Richard wrote:
Hi, I have a data matrix of gene expression data from two groups that
I would like to compare using the t-test. The data has been
processed using RMA and transformed using log2. I would like to
compare the two groups for each gene (N=10,000 genes) and have a
result that
This has nothing to do with RSPerl, instead it has to do what kind of
object you obtain and how these are print():ed. Typing the name of an
object, say, 'res', at R prompt and pressing ENTER;
res
is equivalent as typing
print(res)
This is for convenience to the user. Basically, this is
as.numeric() (and its siblings) strip the names from vectors, e.g.:
as.numeric(t.test(rnorm(1001))$statistic)
[1] -0.6320304
hth,
Tony Plate
At Friday 05:14 PM 4/16/2004, christopher ciotti wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello all -
I'm trying to format some data where
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tony Plate wrote:
as.numeric() (and its siblings) strip the names from vectors, e.g.:
as.numeric(t.test(rnorm(1001))$statistic)
[1] -0.6320304
hth,
Tony Plate
Thanks for the quick response.
- --
chris ciotti ([EMAIL PROTECTED])
PGP ID:
How about this?
t.test(x)[[1]]
The result of t.test(x) is a list and statistic is the first
component of that list.
christopher ciotti wrote:
...
I'm trying to format some data where I only need one of the values
returned from a test, say a t-test in this instance. I have the following:
Sorry, I should have checked that more closely. I see that
t.test(rnorm(12))[[1]]
retains the t.
christopher ciotti wrote:
...
I'm trying to format some data where I only need one of the values
returned from a test, say a t-test in this instance. I have the following:
R.version.string
How about:
as.numeric(t.test(rnorm(12))[[1]])
- Original Message -
From: Chuck Cleland [EMAIL PROTECTED]
To: christopher ciotti [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, April 16, 2004 6:25 PM
Subject: Re: [R] t.test formatting question
Sorry, I should have checked
18 matches
Mail list logo