Displaying 7 results from an estimated 7 matches for "fourfoldplot".
2009 Oct 11
3
Error in family$family : $ operator is invalid for atomic vectors
...;m having problem with an exercise from The R book (M.J. Crawley) on page
567.
Here is the entire code upto the point where I get an error.
data(UCBAdmissions)
x <- aperm(UCBAdmissions, c(2, 1, 3))
names(dimnames(x)) <- c("Sex", "Admit?", "Department")
ftable(x)
fourfoldplot(x, margin = 2)
dept<-gl(6,4)
sex<-gl(2,1,24)
admit<-gl(2,2,24)
model1<-glm(as.vector(x) ~dept*sex*admit,poisson)
This last line returns:
Error in family$family : $ operator is invalid for atomic vectors
I've searched older posts but found nothing that would help resolve my
proble...
2002 Mar 01
1
plot(table..) using pairs
I'm trying to visualise relationships between a number of categorical
variables with values 0 and 1.
Plot(table(x,y))
..works well for one relationship, so I want to use this to examine all
relationships using pairs function.
pairs(data_array, upper.panel=panel.tab)
where
panel.tab <- function (x,y)
{
plot(tables(x,y))
}
..produces the error..
Error in pairs.default(a,
2004 Sep 16
1
barplot with vcd library
...data.
However, when I attach 'vcd' library, the same command does not seem
to work.
It only gives the first three bars and 2 warning messages.
> library(vcd)
Attaching package 'vcd':
The following object(s) are masked from package:graphics :
barplot.default fourfoldplot mosaicplot
The following object(s) are masked from package:base :
print.summary.table summary.table
> barplot(m)
Warning messages:
1: longer object length
is not a multiple of shorter object length in: -0.01 * height
+ shift
2: longer object length
is not a m...
2011 Sep 07
1
Subsetting does not remove unwanted data in table
...move rows where
HabitatDensity="Med". This dataset looks correct when I call it up,
however, when I create a table out of the new subset (data2), my table
continues to show the "Med" information as 0.
This is a problem because I need a 2x2xK structure for my analysis and
the fourfoldplot routine, and therefore wish to eliminate data where
HabitatDensity="Med".
Simple question (and probably simple answer): How can I delete the
HabitatDensity=="Med" from the dataset or table, so that I be left with
a 2x2xK table.
Thanks for any assistance.
Kind regards,
Sco...
2017 Jun 30
0
R 3.4.1 is released
...s .zip file obeys --lock and --pkglock flags.
* (Windows only) The choose.files() function could return incorrect
results when called with multi = FALSE. (PR#17270)
* aggregate(<data.frame>, drop = FALSE) now also works in case of
near-equal numbers in by. (PR#16918)
* fourfoldplot() could encounter integer overflow when calculating
the odds ratio. (PR#17286)
* parse() no longer gives spurious warnings when extracting srcrefs
from a file not encoded in the current locale.
This was seen from R CMD check with inst/doc/*.R files, and check
has some addit...
2005 Jun 24
1
comparing strength of association instead of strength of evidence?
Hi,
I asked this question before, which was hidden in a bunch of
questions. I repharse it here and hope I can get some help this time:
I have 2 contingency tables which have the same group variable Y. I
want to compare the strength of association between X1/Y and X2/Y. I
am not sure if comparing p-values IS the way even though the
probability of seeing such "weird" observation under H0
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...html latex example
format.info text html latex example
formatDL text html latex example
formatc text html latex example
formula text html latex example
fourfoldplot text html latex example
frame text html latex
freeny text html latex example
ftable text html latex example
ftable.formula text html...