search for: mcnemar

Displaying 20 results from an estimated 42 matches for "mcnemar".

2006 Dec 26
3
McNemar test in R & SPSS
Hello, I am hoping someone can clarify why I might obtain a quite different value in R & SPSS for a McNemar test I ran. Firstly, here is the R syntax & output R OUTPUT > mctest <- as.table(matrix(c(128,29,331,430), + ncol =2, dimnames = list(group=c("preMHT","postMHT"), + assault=c("yes","no")))) > mctest assault group yes...
2009 Jul 19
1
Can I use "mcnemar.test" for 3*3 tables (or is there a bug in the command?)
Hello all, I wish to perform a mcnemar test for a 3 by 3 matrix. By running the slandered R command I am getting a result but I am not sure I am getting the correct one. Here is an example code: (tt <- as.table(t(matrix(c(1,4,1 , 0,5,5, 3,1,5), ncol = 3)))) mcnemar.test(tt,...
2010 Dec 28
1
Problem applying McNemar's - Different values in SPSS and R
Hi friends, I get different values for McNemar's test in R and SPSS. Which one should i rely on when the p values differ. I came across this problem when i started learning R and seriously give up on SPSS or any other proprietary software. Thank u in advance Output in SPSS follows *Crosstab* hsc Total ABN NE ABN...
2005 Jan 24
1
mcnemar.test odds ratios, CI, etc.
Does anyone know of another version of the Mcnemar test that provides: 1. Odds Ratios 2. 95% Confidence intervals of the Odds Ratios 3. Sample probability 4. 95% Confidence intervals of the sample probability Obviously the Odds Ratios and Sample probabilities are easy to calculate from the contingency table, but I would appreciate a...
2009 Jun 01
1
using "cochran.test()" as a "mcnemar.test()" ?
Hello all I wish to perform a mcnemar.test() for a 5X5 matrix. Wikipedia tells me (http://en.wikipedia.org/wiki/Cochran_test) I should turn to cochran.test. The only place I found it was in the "outliers" package, but the command cochran.test() acts differently then mcnemar.test() , and doesn't take a table as input. An...
2006 Apr 13
1
about McNemar
Hello sir: How can I perform McNemar (paired chi square test) by using R? Thanks! ------------------------------ ******************************************* Xin Meng Capitalbio Corporation National Engineering Research Center for Beijing Biochip Technology BioPharma-informatics & Software Dept. Research Engineer Tel:...
2010 Sep 14
1
Using McNemar's test to detect shifts in response from pre- to post-treatment
Hello Everyone,   I've been asked to check if there is a significant difference in the following:                     Pre        Post Group A     15/19     14/19 Group B     14/19     10/19   My sense is that I need to perform McNemar's test on these data because responses are correlated within patient from the pre-test to the post-test.   The question is how to do this. I'm a SAS user who is learning R. I'm not sure how to do this in SAS and am even less certain about how to do it in R. The R books I have don't...
2015 Jan 29
3
pregunta
Estimados Para analizar tres muestras cualitativas independientes se utiliza Cochran-Mantel-Haenszel test ?Cual script es el adecuado para analizar tres variables dependientes? en MCNEMAR solo se permite analizar dos variables cualitaticvas dependientes saludos José [[alternative HTML version deleted]]
2012 Nov 20
0
McNemar's Test Question
Hi all, I'm wondering if there's a way that I can perform McNemar's test for a small dataset easier. I know this may be different from the usual way, but I'm hoping to throw it out there for help. For now, my orginnal dataset looks something like this... Chemical shifts Pre_yes Pre_no Post_yes Post_no 1 20...
2010 Apr 27
1
Should mcnemar.test use as.factor instead of factor
I am working with the mcnemar.test function and the help does not show a maintainer/author, but it is part of the stats package. My issue is that I want to use the test on 2 variables with possible values of 0:3, in one of the tests one of the variables does not have any 3's, so to make sure that the matrix is square I do:...
2010 Jan 28
0
Update to exact2x2 package: Exact McNemar's test
Hi all, I have updated the exact2x2 package which calculates exact conditional tests and the matching confidence intervals for 2x2 tables. The big change in the update is to allow the option paired=TRUE which gives an exact McNemar's test together with odds ratio estimates and confidence intervals. See vignette("exactMcNemar") for details. The original release is described in the paper: Fay, M.P. (2009). "Confidence intervals that match Fisher's exact or Blaker's exact tests" Biostatistics. d...
2005 Dec 17
0
- McNemar with unequal sample sizes
Hi, i need to test the equality of proportions in a paired case, like here: after before + - + 10 14 - 5 53 So usually i use the mcnemar.test(stats). Due to mortality, I now got the problem that my sample sizes in both factors are not equal any more -- there are less cases in the "after" condition. I already learned that Ekbohm (1982) and Marascuilo adressed the problem conceptually, but I'm not that good at writing m...
2010 Jan 28
0
Update to exact2x2 package: Exact McNemar's test
Hi all, I have updated the exact2x2 package which calculates exact conditional tests and the matching confidence intervals for 2x2 tables. The big change in the update is to allow the option paired=TRUE which gives an exact McNemar's test together with odds ratio estimates and confidence intervals. See vignette("exactMcNemar") for details. The original release is described in the paper: Fay, M.P. (2009). "Confidence intervals that match Fisher's exact or Blaker's exact tests" Biostatistics. d...
2013 Feb 01
2
Nested loop and output help
Hello Everyone, My name is Thomas and I have been using R for one week. I recently found your site and have been able to search the archives of posts. This has given me some great information that has allowed me to craft an initial design to an inquiry I would like to make into the breakdown of McNemar's test. I have read an intro to R manual and the posting guides and hope I am not violating them with this post. If so I will re-ask my question in the proper format. I have succeeded in writing a loop to vary one condition of my inquiry but I am unable to understand how to vary the remaining...
2009 Jun 22
2
Automatically Adding Categories
...ontain responses to a series of multiple choice questions. One file contains responses before an "intervention" and the other contains the responses afterward. There were three possible responses to each question: D, F, T (for Don't Know, False, and True). I would like to try McNemar's test to determine if there was any significant difference between before and after. I read the files. I create tables using: firstQuestion <- table( PreSurveyData$q1, PostSurveyData$q2) for example. The problem is that for several of the questions not all of the possible responses...
2009 Jul 24
2
How to test frequency independence (in a 2 by 2 table) with many missing values
...*: We have a list of subjects. each of them went through two tests with the answer to each can be either 0 or 1. *Goal*: We want to know if the two experiments yielded different results in the subjects answers. *Statistical test (and why it won't work)*: Naturally we would turn to performing a mcnemar test. But here is the twist: we have missing values in our data. For our purpose, let's assume the missingnes is completely at random, and we also have no data to use for imputation. Also, we have much more missing data for experiment number 2 then in experiment number 1. So the question is, u...
2005 Jun 23
1
the dimname of a table
i have a data frame(dat) which has many variables.and i use the following script to get the crosstable. >danx2<-c("x1.1","x1.2","x1.3","x1.4","x1.5","x2","x4","x5","x6","x7","x8.1","x8.2","x8.3","x8.4","x11",
2009 Feb 10
6
OT: A test with dependent samples.
I am appealing to the general collective wisdom of this list in respect of a statistics (rather than R) question. This question comes to me from a friend who is a veterinary oncologist. In a study that she is writing up there were 73 cats who were treated with a drug called piroxicam. None of the cats were observed to be subject to vomiting prior to treatment; 12 of the cats were subject to
2006 May 17
1
mc nemar test
...ke to perform a mc nemar test. There is my data : __________________________________ x <- matrix(4:1,2,2) x [,1] [,2] [1,] 4 2 [2,] 3 1 __________________________________ My population is too small for normal approximation. __________________________________ library(concord) mcnemar.mh(x) $statistic [1] 0.2 $p [1] 0.6547208 Warning message: low cell counts - consider binomial test in: mcnemar.mh(x) ___________________________________ Do you have an advice to perform this test ? Is there a non-parametric one ? Thank you very much. -- David [[alternative HTML version de...
2010 Nov 29
1
cross tabulate variables by subject id
...), cond2=rep(c("C","D"),each=10), choice=sample(0:1,10,replace=TRUE)) I would like to compare subjects' "choice" for (cond1=="A" & cond2=="C") vs (cond1=="A" & cond2=="D"), using mcnemar.test The ?mcnemar.test example has the data in a matrix: Performance 2nd Survey 1st Survey Approve Disapprove Approve 794 150 Disapprove 86 570 So for my case, I need something like: Choice AC AD 0 1 0 ... 1 Where "......