Displaying 20 results from an estimated 4000 matches similar to: "one-sample binomial test"
2002 Jul 06
1
R: one-sample binomial test
try
?power.prop.test
> -----Messaggio originale-----
> Da: Tim Wilson [mailto:wilson at visi.com]
> Inviato: sabato 6 luglio 2002 6.05
> A: R-help
> Oggetto: [R] one-sample binomial test
>
>
> Hi everyone,
>
> Here's how I solved a problem for my stats class. I'm pretty sure I
> understand what's going on, but I wonder if there's a more
>
2009 Feb 05
1
Incorrect p value for binom.test?
I believe the binom.test procedure is producing one tailed p values
rather than the two tailed value implied by the alternative hypothesis
language. A textbook and SAS both show 2*9.94e-07 = 1.988e-06 as the
two tailed value. As does the R summation syntax from R below. It
looks to me like the alternative hypothesis language should be revised
to something like " ... greater than or equal
2003 Apr 18
2
prop.test confidence intervals (PR#2794)
Full_Name: Robert W. Baer, Ph.D.
Version: 1.6.2
OS: Windows 2000
Submission from: (NULL) (198.209.172.106)
Problem: prop.test() does not seem to produce appropriate confidence intervals
for the case where the vector length of x and n is one. (I am not certain about
higher vector lengths.)
As an example, I include x=6 and n=42 which has a mean proportion of 0.115.
When I calculate the 95% CI
2010 Sep 01
2
general question on binomial test / sign test
hello,
i did several binomial tests and noticed for one sparse dataset that
binom.test(1,1,0.5) gives a p-value of 1 for the null, what i can't quite
grasp. that would say that the a prob of 1/2 has p-value of 0 ?? - i must be
wrong but can't figure out the right interpretation..
best,
kay
-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of
2010 Jul 29
2
Multiple binomial tests on a large table
I need to run binomial tests (binom.test) on a large set of data, stored
in a table - 600 tests in total.
The values of x are stored in a column, as are the values of n. The
data for each test are on a separate row.
For example:
X N
11 19
9 26
13 21
13 27
18 30
It is a two-tailed test, and P in all cases is 0.5.
My question is: Is there a quicker way of running these tests without
having to
2008 Sep 23
4
Proper power computation for one-sided binomial tests.
Hi, I trying to determine the best way to compute the power for a
one-sample one-sided binomial test. Specifically I need to sample a
population of individuals and ask whether a sample rate of 0% is
compatable with a minimum threshold of 3% and how many samples are needed.
I have made use of power.prop.test but I am not sure if a) that is the
correct (or best) function to use and b) if the
2010 Jun 24
1
two sample binomial test
I wanted to know if there is a way to perform a two sample binomial test in
R. I know you can use the proportion test i.e.:
prop.test(c(19,5),c(53,39),p=NULL,alternative="two.sided"). But I was
looking to use the exact binomial test, binom.test, however when I have
tried replacing prop.test with binom.test I get an error. Is there any way
to do this?
--
View this message in context:
2006 Feb 03
5
pbinom with size argument 0 (PR#8560)
Full_Name: Uffe H?gsbro Thygesen
Version: 2.2.0
OS: linux
Submission from: (NULL) (130.226.135.250)
Hello all.
pbinom(q=0,size=0,prob=0.5)
returns the value NaN. I had expected the result 1. In fact any value for q
seems to give an NaN. Note that
dbinom(x=0,size=0,prob=0.5)
returns the value 1.
Cheers,
Uffe
2010 Mar 13
1
What can I use instead of ks.test for the binomial distribution ?
Hello all,
A friend just showed me how ks.test fails to work with pbinom for small
"size".
Example:
x<-rbinom(10000,10,0.5)
x2<-rbinom(10000,10,0.5)
ks.test(x,pbinom,10,0.5)
ks.test(x,pbinom,size = 10, prob= 0.5)
ks.test(x,x2)
The tests gives significant p values, while the x did come from
binom with size = 10 prob = 0.5.
What test should I use instead ?
Thanks,
Tal
2005 Apr 19
1
a statistic question,a bit off-topic,but important
it seems that all the existing prop test assume 2 independent or matched sample.but in the real world, many situations are not as we assume.for example,i do a research on the voter's prefernce through a random sampling.and the sample shows that 23% of the sample choose A,28% choose B,the others choose C.and i want to test the diference between the proportion choosing A and B (23%-28%=-5%) is
2011 Nov 01
1
Sample size calculations for one sided binomial exact test
I'm trying to compute sample size requirements for a binomial exact test.
we want to show that the proportion is at least 90% assuming that it is
95%, with 80% power so any asymptotic approximations are out of the
questions. I was planning on using binom.test to perform the simple test
against a prespecified value, but cannot find any functions for computing
sample size. do any exist?
2002 Jul 03
2
operating on a subset of a dataframe
Hi everyone,
I've got a dataframe with columns of different types. A certain number
of columns in the dataframe hold the results of a series of Likert-type
items. I've got a function that will print a simple table of frequencies
and I want to apply that function to those columns of the dataframe
only. What's the best approach?
-Tim
--
Tim Wilson | Visit Sibley online: |
2024 Apr 07
1
Question regarding reservoir volume and water level
Homework?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
On April 7, 2024 8:27:18 AM EDT, javad bayat <j.bayat194 at gmail.com> wrote:
>Dear all;
>I have a question about the water level of a reservoir, when the volume
>changed or doubled.
>There is a DEM file with the highest elevation 1267 m. The lowest elevation
>is 1230 m. The current volume of
2003 Jan 22
2
small bug in binom.test?
Hi all,
I am wondering whether there is a small bug in the binom.test function of
the ctest library (I'm using R 1.6.0 on windows 2000, but Splus 2000 seems
to have the same behaviour). Or perhaps I've misunderstood something.
the command binom.test(11,100,p=0.1) and binom.test(9,100,p=0.1) give
different p-values (see below). As 9 and 11 are equidistant from 10, the
mean of the
2006 Sep 14
1
Binomial test using R
Hullo,
Can someone suggest whether the binomial test as described in the link
http://home.clara.net/sisa/binomial.htm is available in an equivalent form
in R? I have downloaded the R package from the CRAN site.
Using R will help me do this test rapidly
Many Thanks
Ramachandran
Dr. S. Ramachandran
Scientist E I
G.N. Ramachandran Knowledge Centre for Genome Informatics
Institute of Genomics and
2011 Nov 17
1
How to Fit Inflated Negative Binomial
Dear All,
I am trying to fit some data both as a negative binomial and a zero
inflated binomial.
For the first case, I have no particular problems, see the small snippet
below
library(MASS) #a basic R library
set.seed(123) #to have reproducible results
x4 <- rnegbin(500, mu = 5, theta = 4)
#Now fit and check that we get the right parameters
fd <- fitdistr(x4, "Negative
2006 Oct 11
2
expression as a parameter of binom.test (PR#9288)
Full_Name: Petr Savicky
Version: 2.4.0
OS: Fedora Core release 2
Submission from: (NULL) (62.24.91.47)
the error is
> binom.test(0.56*10000,10000)
Error in binom.test(0.56 * 10000, 10000) :
'x' must be nonnegative and integer
while
> binom.test(5600,10000)
yields correct result.
The same error occurrs for
> binom.test(0.57*10000,10000)
2006 Jul 30
1
Power of a single sample binomial test
The only references to this I can find searching the archives are to a
student who asked in relation to his course work on a stats course.
Promise I'm not doing that!
I have a situation in which we want to test proportions against an
expected proportion, binom.test() is great. I'd like to do some post
hoc power tests (the x and n were beyond our control in the survey as
all we could set
2011 Nov 19
3
Data analysis: normal approximation for binomial
Dear R experts,
I am trying to analyze data from an article, the data looks like this
Patient Age Sex Aura preCSM preFreq preIntensity postFreq postIntensity
postOutcome
1 47 F A 4 6 9 2 8 SD
2 40 F A/N 5 8 9 0 0 E
3 49 M N 5 8 9 2 6 SD
4 40 F A 5 3 10 0 0 E
5 42 F N 5 4 9 0 0 E
6 35 F N 5 8 9 12 7 NR
7 38 F A 5 NA 10 2 9 SD
8 44 M A 4 4 10 0 0 E
9 47 M A 4 5 8 2 7 SD
10 53 F A 5 3 10 0 0 E
11
2002 Sep 22
3
binom.test()
Hello everybody.
Does anyone else find the last test in the following sequence odd?
Can anyone else reproduce it or is it just me?
> binom.test(100,200,0.13)$p.value
[1] 2.357325e-36
> binom.test(100,200,0.013)$p.value
[1] 6.146546e-131
> binom.test(100,200,0.0013)$p.value
[1] 1.973702e-230
> binom.test(100,200,0.00013)$p.value
[1] 0.9743334
(R 1.5.1, Linux RedHat 7.1)
--