search for: fourfold

Displaying 8 results from an estimated 8 matches for "fourfold".

2009 Jun 06
1
stars (as fourfold plots) in plot (symbols don't work)
Hi! I have a dataset with three columns -the first two refer to x and y coordinates, the last one are odds ratios. I'd like to plot the data with x and y coordinates and the odds ratio shown as a fourfold plot, which I prefer to do using the stars function. Unfortunately the stars option in symbols is not as cool as the stars function on its own, and now i can't figure out how to do it! here's an example code: #data test<-cbind(c(1,2,3,4), c(1,2,3,4), c(2,4,8,16)) #this is what I want...
2005 Sep 27
1
Simulate phi-coefficient (correlation between dichotomous vars)
...gt; I know there are ways to do this with normally distributed numbers (for > example the mvrnorm function in MASS), but am stumped when dealing with > dichotomous variables. > > Paul One way is to sample from the 2x2 table with the specified means and pearson correlation (phi): for a fourfold table, a b c d with marginal proportions p1 and p2 cov <- phi * sqrt(p1*(1-p1)*p2*(1-p2)) a <- p1*p2 + cov b <- p1*(1-p2) - cov c <- (1-p1)*p2 - cov d <- (1-p1)*(1-p2) + cov expand.grid(0:1,0:1)[sample(1:4, size=25, replace=TRUE, prob=c(a,b,c,d)),] David. | Da...
2002 Dec 16
0
new package "vcd" 0.1-3
...now the features of the package essentially cover chapters 2-4 from the book: o fitting and graphing discrete distributions: goodness-of-fit tests for poisson, binomial and negative binomial distribution; rootograms; Ord plots; poissonness plots. o 2-way contingency tables: improved fourfold displays (compared to base); trilinear plots; sieve diagrams, agreement charts. o mosaic displays for n-way tables: improved mosaicplots (compared to base); mosaic matrices. We work on extensions enhancing several functions so this is very much work-in-progress, but we wanted to provide a...
2002 Dec 16
0
new package "vcd" 0.1-3
...now the features of the package essentially cover chapters 2-4 from the book: o fitting and graphing discrete distributions: goodness-of-fit tests for poisson, binomial and negative binomial distribution; rootograms; Ord plots; poissonness plots. o 2-way contingency tables: improved fourfold displays (compared to base); trilinear plots; sieve diagrams, agreement charts. o mosaic displays for n-way tables: improved mosaicplots (compared to base); mosaic matrices. We work on extensions enhancing several functions so this is very much work-in-progress, but we wanted to provide a...
2011 Sep 03
1
Lmer plot help
Hello all I'm running the lme4 package on my binomial data, and I'm happy with the model and the resultant plot. However, I'd like to plot my table data, which has: two IVs, and one DV. You can see an example below, where 'attractive' = question (IV), male = condition(IV/predictor) and no/yes = answer (dv). I'm using the table to investigate what questions act differently
2005 Sep 09
2
Simulate phi-coefficient
Looking for help with the following problem. Given a sample of zeros and ones, for example: > VECTOR1<-rep(c(1,0),c(15,10)) > VECTOR1 [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 How would I create a new sample (VECTOR2) also containing zeros and ones, in which the phi-coefficient between the two sample vectors was drawn from a population with a known
2009 Jun 08
0
SMACOF joint configuration plot with bread data? (Michael Kubovy)
...nction vglm (David Winsemius) > 36. Re: No --no-latex? (Jim Lemon) > 37. Survreg function for loglogistic hazard estimation (chenjiakai) > 38. Re: RPostgreSQL segfault with LEFT JOIN (Joe Conway) > 39. Re: Journal Articles that Have Used R (Jonathan Baron) > 40. stars (as fourfold plots) in plot (symbols don't work) (maiya) > 41. extract rows having negative values (Manisha Brahmachary) > 42. Convert a lis to matrix (Manisha Brahmachary) > 43. Re: extract rows having negative values (Bill.Venables at csiro.au) > 44. Re: EBImage not loading (Gregoire P...
2012 Oct 02
3
Integration in R
Dear R-users, I am facing problem with integrating in R a likelihood function which is a function of four parameters. It's giving me the result at the end but taking more than half an hour to run. I'm wondering is there any other efficient way deal with. The following is my code. I am ready to provide any other description of my function if you need to move forward.