[R] aov(rt~(F1*F2*F3)+Error(s/(F1*F2*F3)), three_way) question + data

2012-09-02 Thread David G
Dear list members, I am picking up some experimental data that was collected last year and analysed using a within subject repeated measure ANOVA using SPSS (glm). There are 3 factors (F1, F2, F3), each with 2 levels (foc - per; on - off; l - r) recorded within a balanced 2x2x2 design. I want to

Re: [R] Lattice plots and missing x-axis labels on second page

2011-11-02 Thread Evans, David G (DFG)
ain. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Evans, David G (DFG) Sent: Wednesday, November 02, 2011 3:24 PM To: r-help@r-project.org Subject: [R] Lattice plots and missing x-axis labels on second page Hello, I'm trying to

[R] Lattice plots and missing x-axis labels on second page

2011-11-02 Thread Evans, David G (DFG)
nd page. Everything looks fine for the first page, but the x-axis labels (e.g. 1993, 1994...) are all missing on the second page. The x-axis variable name ("Year") is there at the bottom, however. Any help is appreciated. Thanks. David G. Evans Biometrician Division of Sport Fish Alask

[R] matrix indexing (igraph ?)

2011-08-02 Thread Robinson, David G
I realize that matrix indexing has been addressed in various flavors, but I'm stumped and didn't find anything in the archives. It's not clear if it is an igraph issue or a more general problem. Thanks in advance for your patience. I am using igraph to read a gml file (http://www-personal.umic

[R] read.graph: vertex labels in GML file?

2011-06-10 Thread Robinson, David G
I can successfully read a GML file using read.graph (e.g. those at http://www-personal.umich.edu/~mejn/netdata/ , the football data set in particular). However, I don't seem to be able to read the vertex labels that are in the GML file; or maybe I am, but I cannot get at them? I suspect I'm not re

[R] lattice histogram and grouping

2011-03-21 Thread Evans, David G (DFG)
Hi, >From the following pseudo-code (tweaked from another user): library(lattice) variable<-sample(rep(1:2,100)) individual<-rep(1:3, length(variable)) group<-rep(LETTERS[1:2],length(variable)/2) mydata<-data.frame(variable,individual,group) individual<-as.factor(individual) group<-as.factor(group

[R] lattice histogram function and groups

2011-03-18 Thread Evans, David G (DFG)
Hi, >From the following code (tweaked from another user): variable<-sample(rep(1:2,100)) individual<-rep(1:3, length(variable)) group<-rep(LETTERS[1:2],length(variable)/2) mydata<-data.frame(variable,individual,group) individual<-as.factor(individual) group<-as.factor(group) histogram(~

Re: [R] Parallel processing question ...

2011-02-09 Thread Robinson, David G
ar in the resulting list. Thanks again for taking the time to try to figure this out. Cheers, Dave On 2/8/11 7:47 PM, "Steve Lianoglou" wrote: Hi, On Tue, Feb 8, 2011 at 6:18 PM, Robinson, David G wrote: > I am experimenting with parallel processing using foreach and se

[R] Parallel processing question ...

2011-02-08 Thread Robinson, David G
I am experimenting with parallel processing using foreach and seem to be missing something fundamental. Cool stuff. I've gone through the list and seen a couple of closely related issues, but nothing I've tried seems to work. I know that the results from foreach are combined, but what if there is

Re: [R] MCMC object indexing

2011-01-20 Thread Robinson, David G
Stoker, Ben wrote: > A reproducible example would be very useful. In general > I find that I can just index an mcmc object as though it > were a matrix, e.g.: > > z <- cbind(a=runif(20),b=runif(20),c=runif(20)) > library(coda) > m <- mcmc(data=z) > t(apply(m,2,quantile,c(0.025,0.975))) > > If

[R] MCMC object indexing

2011-01-19 Thread Robinson, David G
I have an mcmc object and I'm trying to plot the quantiles of the variables - and not as a function of the iterations as in cumuplot. I cannot seem to find the right combination of indexing to access the variables; after which I'm sure I can plot all the statistics I could hope for. Any hints f

Re: [R] Data frame/read.ftable

2009-12-03 Thread Robinson, David G
David, Great! 'split' is something I didn't even look at. Owe you one. Many thanks, Dave On 12/2/09 7:29 PM, "David Winsemius" wrote: On Dec 2, 2009, at 7:02 PM, Robinson, David G wrote: > My apologies for this question but I'm stuck and I'm sure tha

[R] Data frame/read.ftable

2009-12-02 Thread Robinson, David G
My apologies for this question but I¹m stuck and I¹m sure that there must be an easy answer out there (and hope that someone will have mercy and point me in the right direction). I have a data file that looks like: 1 77 3 1 8 1 1 7 2 1 1 5 1 42 7 1 0 2 1 23 1 2 83 9 2 8 2 2 6 5 2 23 3 3 11 3 3 8 1

Re: [R] adding factor scores back to an incomplete dataset...

2009-08-28 Thread David G. Tully
spec...@stat.berkeley.edu On Tue, 25 Aug 2009, David G. Tully wrote: I am sure there is a simple way to do the following, but i haven't been able to find it. I am hoping a merciful soul on R-help could point me in the right direction. I am doing a factor analysis on survey data with

[R] adding factor scores back to an incomplete dataset...

2009-08-25 Thread David G. Tully
I am sure there is a simple way to do the following, but i haven't been able to find it. I am hoping a merciful soul on R-help could point me in the right direction. I am doing a factor analysis on survey data with missing values. to do this, I run: FA1<-factanal(na.omit(DATA), factors = X,

[R] Multivariate Density Plots

2008-10-03 Thread David G. Tully
now how to pull them together into a plot. Can you make a recommendation for an R plot, or a beginner's tool in processing that might help? David G. Tully Northwestern University Department of Political Science 601 University Place Evanston, IL 60208 [EMAIL PROTECTED] [[a