Perhaps I misunderstand, but ?chisq.test explicitly says:
"If x is a matrix with at least two rows and columns, it is taken as a
two-dimensional contingency table: the entries of x must be
non-negative integers. Otherwise, x and y must be vectors or factors
of the same length; cases with missing
Hi,
Is there a function where I can specify expected proportions for the
two-way table to
calculate the Chi-square test? chisq.test allows specifying only the
one-way table.
Otherwise, I will have to write the function, but I never trust myself not
to make a mess
programing.
Thanks,
Miloš
r.ca>
> Para: "Sergio Ferreira Cardoso" <sergio.ferreira-card...@umontpellier.fr>
> Cc: "R-help list" <r-help@r-project.org>
> Enviadas: Sábado, 21 De Janeiro de 2017 6:09:22
> Assunto: Re: [R] Chi-square test
> Dear Sergio,
>
> You appear to
> On Jan 20, 2017, at 7:36 AM, Sergio Ferreira Cardoso
> wrote:
>
> Dear all,
>
> Anova() for .car package retrieves Chi-square statistics when I'm testing a
> model the significance of a multivariate .gls model
>
Dear Sergio,
You appear to have asked this question twice on r-help.
Anova() has no specific method for “gls” models (I assume, though you don’t say
so, that the model is fit by gls() in the nlme package), but the default method
works and provides Wald chi-square tests for terms in the model.
Dear all,
Anova() for .car package retrieves Chi-square statistics when I'm testing a
model the significance of a multivariate .gls model
gls(x~1+2+3+x,corBrownian(phy=tree), ...).
Is this Chi-square a two-sided test?
Thank you.
Best,
Sérgio.
[[alternative HTML version
Hello,
If the vector of observed frequencies is:
f-c(0,0,0,2,3,6,17,15,21,21,14,10,5,1,5)
and the vector of probability :p11-c(7.577864e-06, 1.999541e-04
,1.833510e-03, 9.059845e-03, 2.886977e-02, 6.546229e-02 ,1.124083e-01,
1.525880e-01, 1.689712e-01, 1.563522e-01, 1.232031e-01,
On 20-02-2015, at 19:05, pari hesabi statistic...@hotmail.com wrote:
Hello,
If the vector of observed frequencies is:
f-c(0,0,0,2,3,6,17,15,21,21,14,10,5,1,5)
and the vector of probability :p11-c(7.577864e-06, 1.999541e-04
,1.833510e-03, 9.059845e-03, 2.886977e-02, 6.546229e-02
On Feb 20, 2015, at 10:05 AM, pari hesabi wrote:
Hello,
If the vector of observed frequencies is:
f-c(0,0,0,2,3,6,17,15,21,21,14,10,5,1,5)
and the vector of probability :p11-c(7.577864e-06, 1.999541e-04
,1.833510e-03, 9.059845e-03, 2.886977e-02, 6.546229e-02 ,1.124083e-01,
-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Berend Hasselman
Sent: Friday, February 20, 2015 12:13 PM
To: pari hesabi
Cc: r-help@r-project.org
Subject: Re: [R] Chi-square test
On 20-02-2015, at 19:05, pari hesabi statistic...@hotmail.com wrote:
Hello,
If the vector
Dear useRs of R,
I have two datasets (TT and SS) and i wanted to to see if my data is uniformly
distributed or not?I tested it through chi-square test and results are given at
the end of it.Now apparently P-value has a significant importance but I cant
interpret the results and why it says that
On 09/15/2014 10:57 AM, eliza botto wrote:
Dear useRs of R,
I have two datasets (TT and SS) and i wanted to to see if my data is uniformly
distributed or not?I tested it through chi-square test and results are given at the end
of it.Now apparently P-value has a significant importance but I
[mailto:r-help-boun...@r-project.org] On
Behalf Of Rick Bilonick
Sent: Monday, September 15, 2014 10:18 AM
To: r-help@r-project.org
Subject: Re: [R] chi-square test
On 09/15/2014 10:57 AM, eliza botto wrote:
Dear useRs of R,
I have two datasets (TT and SS) and i wanted to to see if my data
I`m doing the chi square test in R, see below code:
row1 - c(27,17,13,21,80,24,35,41,18,51) #Category A (1-10) counts
row2 - c(27,11,26,13,30,28,17,30,10,21) #Category B (1-10) counts
data.table - rbind(row1,row2)
data.table
then:
chisq.test(data.table)
This gives me the chi figure,
On Mon, Jun 17, 2013 at 9:14 AM, Dave Clark d...@mailbox.co.uk wrote:
I`m doing the chi square test in R, see below code:
row1 - c(27,17,13,21,80,24,35,41,18,51) #Category A (1-10) counts
row2 - c(27,11,26,13,30,28,17,30,10,21) #Category B (1-10) counts
data.table - rbind(row1,row2)
On Jun 17, 2013, at 10:36 , R. Michael Weylandt wrote:
On Mon, Jun 17, 2013 at 9:14 AM, Dave Clark d...@mailbox.co.uk wrote:
I`m doing the chi square test in R, see below code:
row1 - c(27,17,13,21,80,24,35,41,18,51) #Category A (1-10) counts
row2 - c(27,11,26,13,30,28,17,30,10,21)
On Mon, Jun 17, 2013 at 10:07 AM, peter dalgaard pda...@gmail.com wrote:
On Jun 17, 2013, at 10:36 , R. Michael Weylandt wrote:
What do you mean 'results of individual cells'? As documented in
?chisq.test, you might be looking for one or more of
data.table$observed
data.table$expected
gheine wrote on 10/11/2011 02:31:46 PM:
An organization has asked me to comment on the validity of their
recent all-employee survey. Survey responses, by geographic region,
compared
with the total number of employees in each region, were as follows:
ByRegion
All.Employees
George,
Perhaps the site of the RISQ project (Representativity indicators for
Survey Quality) might be of use: http://www.risq-project.eu/ . They
also provide R-code to calculate their indicators.
HTH,
Jan
Quoting ghe...@mathnmaps.com:
An organization has asked me to comment on the
-help-bounces@r-
project.org] On Behalf Of ghe...@mathnmaps.com
Sent: Tuesday, October 11, 2011 1:32 PM
To: r-help@r-project.org
Subject: [R] Chi-Square test and survey results
An organization has asked me to comment on the validity of their
recent all-employee survey. Survey responses
An organization has asked me to comment on the validity of their
recent all-employee survey. Survey responses, by geographic region,
compared
with the total number of employees in each region, were as follows:
ByRegion
All.Employees Survey.Respondents
Region_1735
Kings College London
From: R. Michael Weylandt [michael.weyla...@gmail.com]
Sent: Wednesday, August 17, 2011 7:11 PM
To: Bansal, Vikas
Cc: r-help@r-project.org
Subject: Re: [R] Chi square test on data frame
I think everything below is right
If your data is d1:
temp - apply(d1[,1:4], 1, order, decreasing=TRUE)[1:2,]
temp - rbind(temp, temp+4)
result - sapply(1:nrow(d1), function(i)
chisq.test(matrix(as.matrix(d1[i,temp[,i]]), ncol=2)))
Uwe Ligges
On 16.08.2011 23:26, Bansal, Vikas wrote:
Dear all,
I have been working on
-project.org
Subject: Re: [R] Chi square test on data frame
I think everything below is right, but it's all a little helter-skelter
so
take it with a grain of salt:
First things first, make your data with dput() for the list.
Y = structure(c(0, 35, 0, 0, 0, 0, 84, 84, 0, 48, 84, 0
Is there anyone who can help me with chi square test on data frame.I am
struggling from last 2 days.I will be very thankful to you.
Dear all,
I have been working on this problem from so many hours but did not find any
solution.
I have a data frame with 8 columns-
V1 V2 V3
I think everything below is right, but it's all a little helter-skelter so
take it with a grain of salt:
First things first, make your data with dput() for the list.
Y = structure(c(0, 35, 0, 0, 0, 0, 84, 84, 0, 48, 84, 0, 22, 0, 0,
0, 0, 0, 10, 0, 48, 0, 0, 48, 0, 22, 0, 0, 0, 0, 84, 84, 0, 48,
7:11 PM
To: Bansal, Vikas
Cc: r-help@r-project.org
Subject: Re: [R] Chi square test on data frame
I think everything below is right, but it's all a little helter-skelter so take
it with a grain of salt:
First things first, make your data with dput() for the list.
Y = structure(c(0, 35, 0, 0, 0
Dear all,
I have been working on this problem from so many hours but did not find any
solution.
I have a data frame with 8 columns-
V1 V2 V3 V4 W1 W2W3 W4
1 084 22 10 0 84 0 0
235840
Hello!
Very sorry for a probably very simple question - I looked but did not
find an answer in the archives.
I have a table counts (below) that shows counts by Option within
each of my 2 groups. However, my groups have different sizes (N1=255
and N2=68). Table prop shows the resulting proportions
I was asked by my boss to do an analysis on a large data set, and I am
trying to convince him to let me use R rather than SPSS. I think Sweave
could make my life much much easier. To get me a little closer to this
goal, I ran my analysis through R and SPSS and compared the resulting
values. In all
On 11/26/2008 9:51 AM, Andrew Choens wrote:
I was asked by my boss to do an analysis on a large data set, and I am
trying to convince him to let me use R rather than SPSS. I think Sweave
could make my life much much easier. To get me a little closer to this
goal, I ran my analysis through R
G'day Andy,
On Wed, 26 Nov 2008 14:51:50 +
Andrew Choens [EMAIL PROTECTED] wrote:
I was asked by my boss to do an analysis on a large data set, and I am
trying to convince him to let me use R rather than SPSS.
Very laudable of you. :)
This is the output from R:
chisq.test(test29)
On Thu, 2008-11-27 at 00:46 +0800, Berwin A Turlach wrote:
Chuck explained already the reason for this small difference. I just
take issue about it being an important difference. In my opinion,
this difference is not important at all. It would only be important
to people who are still
On 26-Nov-08 17:57:52, Andrew Choens wrote:
[...]
And, since I do work for government, if I ask for a roomful of
calculators, I might just get them. And really, what am I going
to do with a roomful of calculators?
--andy
Insert something humorous here. :-)
Next time the launch of an
Next time the launch of an incoming nuclear strike is detected,
set them to work as follows (following Karl Pearson's historical
precedent):
Anti-aircraft guns all day long: Computing for the
Ministry of Munitions
JUNE BARROW GREEN (Open University)
From January 1917 until
On Tuesday 08 April 2008 17:04:16 Roslina Zakaria wrote:
Hi R-users,
I would like to find the goodness of fit using Chi-suare test for my data
below: xobs=observed data, xtwe=predicted data using tweedie,
xgam=predicted data using gamma
xobs - c(223,46,12,5,7,17)
xtwe -
Hi R-users,
I would like to find the goodness of fit using Chi-suare test for my data below:
xobs=observed data, xtwe=predicted data using tweedie, xgam=predicted data
using gamma
xobs - c(223,46,12,5,7,17)
xtwe - c(217.33,39,14,18.33,6.67,14.67)
xgam - c(224.67,37.33,12.33,15.33,5.33,15)
37 matches
Mail list logo