[R] Adjacency matrix of higher order (from winbugs to to R)

2010-03-02 Thread Julien Beguin
Hi everyone, I am trying to find a way to calculate an adjacency matrix from a polygon shapefile to make a CAR model in winbugs, but I would like to vary the order of neihborhood. I used the the spdep package to create an adjacency matrix (in list format) of order 2 and it works

Re: [R] merging two data frame with colomns of different length

2009-07-31 Thread Julien Beguin
I forgot to mention that I tried with "merge" and "join" (package analogue) without success... Julien Selon Julien Beguin , 31.07.2009: > Dear all, > > I am trying to merge two data frames based on a common column but for this > common column both data frame

[R] merging two data frame with colomns of different length

2009-07-31 Thread Julien Beguin
d01) # data frame 2 Id2 <- c(1,2,3,3) Habit2 <- c('a','b','d','d') Id02 <- paste(Id2, Habit2,sep=".") Area <- c(10,2,3,5) data2 <- data.frame(cbind(Id02, Area)) # result that I would like Area2 <- c(10, 0, 0, 2, 0, 0, 3, 5, 0) result &

[R] Problem to get a simple Analysis of Variance table with lmer()

2009-04-23 Thread Julien Beguin
t.poisson) summary(fit.poisson) fit.binomial<-lmer(y.binary~x1*x2 + (1|z1/z2/x1), data=data.test, family=binomial(link = "logit")) anova(fit.binomial) summary(fit.binomial) ----------- Thank's in advance for you amsw

[R] anova table with lmer

2009-04-21 Thread Julien Beguin
regards, Julien -- Julien Beguin Etudiant au doctorat Faculté de Foresterie et de Géomatique Université Laval, local 2113 2405 rue de la Terrasse, G1V 0A6 Québec (Qc) Tel: (418) 656-2131 poste 2620 http://www.cen.ulaval.ca/anticosti/jbeguin.html

[R] modifying legend in scatterplot matrix R

2009-02-19 Thread Julien Beguin
quot; (for No and Yes) and appear in my "per default" legend that is located in the buttomright of my 3x3 scatterplot. I would like to replace N by a list of character: "unfenced" and Y by "fenced", as well as moving the legend in another place in my graphic... is so