Re: [R] Binary data on JAGS

2021-06-01 Thread Massimiliano Tripoli
Thanks, for suggestions (To define p before). I thought it and I put this line of code inside the loop: p[i] <- y[i] / n[i] but I received a RUNTIME ERROR and: (Attempt to redefine node p[1]). Thanks Massimiliano Il giorno mar 1 giu 2021 alle ore 17:22 Bert Gunter ha scritto: > Where is p defin

Re: [R] Binary data on JAGS

2021-06-01 Thread Bert Gunter
Unless you have got reason not to, always reply to the list (included in this response). I cannot help, but someone else may be able to. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom Co

Re: [R] Binary data on JAGS

2021-06-01 Thread Bert Gunter
Where is p defined before it is used? (Is this part of what jags provides somehow?) Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Jun 1, 2021 at 7:57 AM

[R] Binary data on JAGS

2021-06-01 Thread Massimiliano Tripoli
Dear R users, I'm trying to reproduce the example 6.5.1 (Dobson (1983)) in BUGS book in linux using JAGS. Below the code as https://www.mrc-bsu.cam.ac.uk/software/bugs/the-bugs-project-the-bugs-book/bugs-book-examples/the-bugs-book-examples-chapter-6-6-5-1/ # By R code: library('rjags') jags <

Re: [R] binary data

2012-09-04 Thread David L Carlson
or of Anthropology Texas A&M University College Station, TX 77843-4352 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Juan Fernández Tajes > Sent: Tuesday, September 04, 2012 3:19 AM > To: r-help@r-project.org &g

[R] binary data

2012-09-04 Thread Juan Fernández Tajes
Dear list, Hello to everybody, I´m interested in finding a package for statistical analysis of binary data, I have a matrix with the following structure: Case1 Case2 Case 3 ... CaseX Control1 Control2 Control3 ... ControlY Pep1 1 0 1 1 0 0 0 1 Pep2 1 1 1 1 1 0 0 1 Pep3 0 1 1 1 1 0

[R] binary data with correlation

2011-03-21 Thread yvonne fabian
Dear posters, I have a question concerning binary data analysis. I have presence absence data of 5 sampling sessions within 3 years, of 12 fields. Each field had 12 traps. I would like to analyse the data with a Generalized Estimating Equations (GEE) Model in R. For the abundance data I used a gls

Re: [R] binary data

2009-11-25 Thread Gnanasivam
karuna m wrote: > > hi, > I am trying to calculate distance matrices for binary data frame. I am > using dist.binary in 'ade4' package. This is the code i run and get error > message as 'missing value where True/False needed: > clss <- as.data.frame(cls) > dist.binary(clss, method = 1, diag = F

[R] binary data

2009-11-12 Thread karuna m
hi, I am trying to calculate distance matrices for binary data frame. I am using dist.binary in 'ade4' package. This is the code i run and get error message as 'missing value where True/False needed: clss <- as.data.frame(cls) dist.binary(clss, method = 1, diag = FALSE, upper = FALSE) Also, if i

[R] Binary data

2007-11-23 Thread Joe Bloggs
Hi, can anyone give me some advice on dealing with binary data in R efficiently? Are there any packages with fast binary vector datatypes &/or algorithms (e.g. Hamming distance, set covering)? __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] Binary data sets

2007-11-10 Thread Ted Harding
On 09-Nov-07 23:11:02, [EMAIL PROTECTED] wrote: > Hi, > > I would like to know if there is any algorithm in R for transforming > Binary data sets. I want something like taking all the zeros and giving > them some negative value, for example -5, and taking all ones and > giving them some positive v

[R] Binary data sets

2007-11-10 Thread pedrosmarques
Hi, I would like to know if there is any algorithm in R for transforming Binary data sets. I want something like taking all the zeros and giving them some negative value, for example -5, and taking all ones and giving them some positive value, if it had been given -5 for zeros it would be 5 fo