Re: [R] Binary data on JAGS

2021-06-01 Thread Massimiliano Tripoli
ic strip ) > > > On Tue, Jun 1, 2021 at 7:57 AM Massimiliano Tripoli < > massimiliano.trip...@gmail.com> wrote: > >> 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

[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 <

[R] par function for barchart

2015-01-14 Thread Massimiliano Tripoli
;, "X1", "X2"), class = "data.frame", row.names = c(NA, -19L)) require(lattice) op <- par(mfrow=c(1,2)) barchart(REGIONE ~ X1,data=mydata,col="red") barchart(REGIONE ~ X2,data=mydata,col="green") par(op) Can anyone help me, please? Thanks,

Re: [R] Converting list to character

2014-11-26 Thread Massimiliano Tripoli
Thanks David, that's I was looking for. Thanks to Chel too. Massimiliano - Messaggio originale - Da: "David L Carlson" A: "Chel Hee Lee" , "Massimiliano Tripoli" , r-help@r-project.org Inviato: Martedì, 25 novembre 2014 19:40:51 Oggetto: RE: [R] Co

[R] Converting list to character

2014-11-25 Thread Massimiliano Tripoli
chr "GR.3.1" "GR.3.8" ..$ 9 : chr "GR.3.8" ..$ 10: chr "GR.3.7" ..$ 11: chr "GR.3.1" ..$ 12: chr "GR.3.8" ..$ 13: chr "GR.3.1" "GR.3.8" ..$ 15: chr "GR.3.8" ..$ 16: chr "GR.3.1" ..

Re: [R] Replacing NA's in the data set

2014-04-29 Thread Massimiliano Tripoli
n 10 with the corresponding value in column 11. How to achieve this. Please help me. Thank you. Dila [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.

Re: [R] problem of tapply function

2014-03-30 Thread Massimiliano Tripoli
Thanks Bert - Messaggio originale - Da: "Bert Gunter" A: "Massimiliano Tripoli" Cc: r-help@r-project.org Inviato: Sabato, 29 marzo 2014 15:52:59 Oggetto: Re: [R] problem of tapply function The argument to tapply is FUN, not fun. R is case sensitive. -- Bert B

[R] problem of tapply function

2014-03-29 Thread Massimiliano Tripoli
d help to me, please? Massimiliano -- Massimiliano Tripoli Collaboratore T.E.R. scado il 31/12/2014 ISTAT - DCCN - Direzione Centrale della Contabilità Nazionale U.O. Contabilità dei flussi di materia del sistema economico - CSA/C Via Depretis, 74/B 00184 Roma Tel. 06.4673.3132 E-mail: mtrip...@istat.it

[R] Problem of "!" operator

2014-03-28 Thread Massimiliano Tripoli
3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.0.3 -- Massi

Re: [R] sub function problem

2014-03-03 Thread Massimiliano Tripoli
;PIKAL Petr" A: "Massimiliano Tripoli" , r-help@r-project.org Inviato: Lunedì, 3 marzo 2014 10:36:02 Oggetto: RE: [R] sub function problem Hi Everything works for me as expected. Nothing happens R starts as usual. You can shorten your function corregge2 <- function(stringa){ nc <

[R] sub function problem

2014-02-28 Thread Massimiliano Tripoli
fhsfh") [1] 8 > sub("^ ", "", " fghaghf") [1] "fghaghf" > And restarting R I had this message: Error:10061 R is not in server mode. Please, start R and/or run the startSocket Server function available in svSocket package! Anyone could hel

[R] paste function by INDICES

2011-04-27 Thread Massimiliano Tripoli
ccording to ID variable. For example for ID=2 "b" should be 13, for ID=3 "b" should be 114, and for ID=4 should be 1241. How can I do that ? Thank you for any advices, Regards, Massimiliano Tripoli [[alternative HTML version deleted]]