Re: [R] enable object name to be called as object (a dataset)

2007-09-07 Thread Giovanni Petris
-contained, reproducible code. -- Giovanni Petris [EMAIL PROTECTED] Associate Professor Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris/ __ R-help

[R] Error in building R

2007-08-15 Thread Giovanni Petris
. (I don't know if this has to do with perl, but I have version 5.005_03) Does anybody have a suggestion about how to fix the problem? Thanks in advance, Giovanni -- Giovanni Petris [EMAIL PROTECTED] Associate Professor Department of Mathematical Sciences University of Arkansas - Fayetteville

Re: [R] deleting collumns with colSums==0

2007-04-26 Thread Giovanni Petris
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Giovanni Petris [EMAIL PROTECTED] Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http

[R] Suggestions for statistical computing course

2007-04-20 Thread Giovanni Petris
acceptable. Thank you for your consideration, and thank you in advance for the useful replies. Have a good day, Giovanni -- Giovanni Petris [EMAIL PROTECTED] Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http

Re: [R] Suggestions for statistical computing course

2007-04-20 Thread Giovanni Petris
Thanks to everybody who responded to my query. I got many useful suggestions about books and editors, plus notes and other material online. Summarizing, the books suggested were - Monahan, Numerical Methods of Statistics - Lange, Numerical analysis for statisticians In terms of Editors,

Re: [R] Standardization

2007-03-27 Thread Giovanni Petris
]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Giovanni Petris [EMAIL PROTECTED] Associate Professor

Re: [R] Extracting the p of F statistics from lm

2007-03-09 Thread Giovanni Petris
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Giovanni Petris [EMAIL PROTECTED] Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris

Re: [R] Matrix manipulation

2007-02-13 Thread Giovanni Petris
) - unique(unlist(HELLO)) x HTH, Giovanni -- Giovanni Petris [EMAIL PROTECTED] Associate Professor Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris/ __ R

Re: [R] R packages

2007-01-30 Thread Giovanni Petris
Have you tried a search of CRAN? Seaching r-help archives may result in useful information as well. As formulated, the questions are difficult to answer. There are packages that use MCMC, Gibbs Sampling, Metropolis Hastings for specific classes of models. Best, Giovanni Petris Date: Tue, 30

Re: [R] Bayesian States Space Modeling

2007-01-29 Thread Giovanni Petris
]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Giovanni Petris [EMAIL PROTECTED] Associate Professor

Re: [R] Reading contingency tables

2007-01-19 Thread Giovanni Petris
language R version.string R version 2.4.1 (2006-12-18) -- Giovanni Petris [EMAIL PROTECTED] Associate Professor Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu

Re: [R] Reading contingency tables

2007-01-19 Thread Giovanni Petris
()) it looks the same as the input. You are wright. The point I was trying to make is that read.ftable does not work as (I) expected for an ftable with two column variables. Giovanni On 1/19/07, Giovanni Petris [EMAIL PROTECTED] wrote: Thank you, Prof Ripley. However, there is still

[R] Reading contingency tables

2007-01-18 Thread Giovanni Petris
version.string R version 2.4.1 (2006-12-18) -- Giovanni Petris [EMAIL PROTECTED] Associate Professor Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris

Re: [R] Questions about regression with time-series

2006-12-06 Thread Giovanni Petris
I think the function 'arima' can handle this, except for the automatic evaluation of the ARMA orders. Giovanni Date: Wed, 06 Dec 2006 12:06:46 +0100 From: Lulla OPATOWSKI [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] Precedence: list --===0156932283== Content-Disposition:

Re: [R] Comparing posterior and likelihood estimates for proportions (off topic)

2006-12-06 Thread Giovanni Petris
, reproducible code. -- Giovanni Petris [EMAIL PROTECTED] Associate Professor Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris/ __ R-help

[R] OT: data from Harvey's book

2006-11-01 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Associate Professor ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax

Re: [R] A faster way to calculate Trace?

2006-10-27 Thread Giovanni Petris
-guide.html and provide commented, minimal, self-contained, reproducible code. -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences

Re: [R] summing elements in a list of functions

2006-10-20 Thread Giovanni Petris
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical

Re: [R] randomize a matrix

2006-10-20 Thread Giovanni Petris
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- __ [ ] [ Giovanni Petris [EMAIL

Re: [R] I really don't understand functions in R :-)

2006-10-20 Thread Giovanni Petris
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department

Re: [R] ARS

2006-04-12 Thread Giovanni Petris
In package HI there is a function to perform arms (adaptive rejection Metropolis sampling). Giovanni Date: Wed, 12 Apr 2006 15:49:18 -0500 From: [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] Precedence: list Hello everyone. I would like to know if there is any R library to perform

Re: [R] 'all' inconsistent?

2006-01-30 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http

Re: [R] without the loop

2005-05-13 Thread Giovanni Petris
the posting guide! http://www.R-project.org/posting-guide.html -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University

[R] Function arguments and copying objects

2005-05-10 Thread Giovanni Petris
... Thanks in advance, Giovanni -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph

Re: [R] Generating a binomial random variable correlated with a

2005-04-18 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu

Re: [R] sampling from a mixture distribution

2005-03-23 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris

Re: [R] Convert timeseries to transition matrix

2005-03-22 Thread Giovanni Petris
The following, using table, seems to work: x - sample(letters[1:2], 10, replace=T) x [1] b a a b b a a b b b table(x[-1],x[-length(x)]) a b a 2 2 b 2 3 Hope this helps, Giovanni Petris Date: Tue, 22 Mar 2005 11:20:40 -0500 From: Ingmar Visser [EMAIL PROTECTED] Sender

[R] Package vignette and build

2005-03-22 Thread Giovanni Petris
language R -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph

Re: [R] R list

2004-10-29 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris

Re: [R] Any orthnormal matrix can keep the curve's shape and size unchnaged?

2004-07-29 Thread Giovanni Petris
/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences

[R] Building problem: leftover from old OS

2004-07-21 Thread Giovanni Petris
by `approx.o'. Stop. Do you have any idea of what is going on here? Thanks in advance, Giovanni -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences

Re: [R] product of two chi-squared

2004-07-01 Thread Giovanni Petris
-guide.html -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324

Re: [R] binding rows from different matrices

2004-06-29 Thread Giovanni Petris
://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department

Re: [R] Installing on Windows packages build on Unix

2004-06-28 Thread Giovanni Petris
Thank you to all who responded. In the end the simple solution suggested by Peter Dalgaard worked for us: install the package and zip the resulting directory. (So, incidentally, this still works with R 1.8.0) Thanks, Giovanni __ [EMAIL PROTECTED]

[R] Installing on Windows packages build on Unix

2004-06-25 Thread Giovanni Petris
file - while I have created a tar.gz file. I tried to build the package with the --use-zip options but that didn't work. Any suggestions? TIA, Giovanni -- __ [ ] [ Giovanni Petris

Re: [R] Setting max values for rpois

2004-05-13 Thread Giovanni Petris
:31:49 -0500 (CDT) From: Giovanni Petris [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Precedence: list Bret, the following should do: x - sum(pmin(rpois(recruit.f, l),3)) Giovanni Date: Wed, 12 May 2004 16:11:08 -0500 From: Bret Collier [EMAIL PROTECTED

Re: [R] Setting max values for rpois

2004-05-12 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris

[R] Question about predict.multinom()

2004-05-11 Thread Giovanni Petris
0.73943940.72477870.6722327 Why I am not getting probabilities? Could somebody tell me what I am missing? Thank you in advance, Giovanni -- __ [ ] [ Giovanni Petris [EMAIL

Re: [R] generating data

2004-05-07 Thread Giovanni Petris
Hello I am trying to generate data in say 2D x,y for a circle. I think data are usually collected... GP -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED

[R] predict( ..., type=terms)

2004-04-07 Thread Giovanni Petris
realize that terms are not what I thought they were. Thanks in advance, Giovanni -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences

Re: [R] multiple summation

2004-03-16 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630

[R] quantile function

2004-02-06 Thread Giovanni Petris
7 (55,59] (59,63] 10 5 Thanks in advance, Giovanni -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences

Re: [R] Novice problems with write()

2004-02-04 Thread Giovanni Petris
-guide.html -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479

Re: [R] matrix exponential: M^0

2004-01-20 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris

Re: [R] Scatterplot axes

2003-12-10 Thread Giovanni Petris
Have you tried specifying xlim and ylim? See ?par. -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas

Re: [R] reordering numbers in a vector

2003-11-17 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax

Re: [R] calculating arc length using R?

2003-11-14 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax

Re: [R] Finding the name ob an object

2003-11-10 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax

Re: [R] shuffling a vector

2003-11-10 Thread Giovanni Petris
is a dog! __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- __ [ ] [ Giovanni Petris [EMAIL

Re: [R] Non-standard axis plotting

2003-11-07 Thread Giovanni Petris
: plot(-x,-y, xast='n', yaxt='n') and set manually the axis labelling. HTH Giovanni -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences

Re: [R] Bug in cor.test - Spearman

2003-11-07 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu/~gpetris

Re: [R] Logical matrices

2003-11-05 Thread Giovanni Petris
consult the help page for || ?|| -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR

Re: [R] comparing characters

2003-11-03 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575

Re: [R] print(), cat() and simple I/O in R

2003-10-31 Thread Giovanni Petris
://www.stat.math.ethz.ch/mailman/listinfo/r-help -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas

Re: [R] Summing elements in a list

2003-10-31 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630

[R] restarting split.screen

2003-10-29 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http

Re: [R] restarting split.screen (solved)

2003-10-29 Thread Giovanni Petris
for the waste of bandwidth... Giovanni Date: Wed, 29 Oct 2003 16:11:43 -0600 (CST) From: Giovanni Petris [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] Precedence: list Is there a way of `restarting' split.screen? This is what I am getting: close.screen() [1] 10 11 12 13 close.screen(all=TRUE

Re: [R] how to remove NaN columns ?

2003-10-24 Thread Giovanni Petris
xs - lapply(xdata, function(x){(x - mean(x))/sqrt(var(x))}) Incidentally, the function 'scale' does just that. -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department

[R] comments and Sweave

2003-10-22 Thread Giovanni Petris
I am using Sweave to produce handouts for teaching. Is there a way of making Sweave keep the comments following the `#' in the code chuncks? Thanks, Giovanni -- __ [ ] [ Giovanni Petris

[R] Modifying dim attribute of elements of a list

2003-10-17 Thread Giovanni Petris
I am creating lists of vectors withing a loop. I also would like to change the dim attribute to the vectors in order to make them matrices. I have tried the following, but it doesn't work... sim - c('simMeans','simVars','simWeights') indexTable - table(modelIndex) for (i in sim) { +

Re: [R] Behavior of [[ in S vs. R

2003-10-17 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu

[R] Improving efficiency in outer-like calculation

2003-10-16 Thread Giovanni Petris
(simVars))* rep(simWeights,length(x)),dim=c(mcmc,K,length(x))),c(1,3),sum)) lines(x,pred) Everything works, but it is very slow. Does anybody have suggestions to do the same thing in a more efficient way? Thanks in advance, Giovanni Petris

[R] Printing zero as dot

2003-04-04 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax) ] [ http://definetti.uark.edu

Re: [R] Printing zero as dot

2003-04-04 Thread Giovanni Petris
-- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical Sciences ] [ University of Arkansas - Fayetteville, AR 72701 ] [ Ph: (479) 575-6324, 575-8630 (fax

[R] confint.lm in MASS

2003-02-06 Thread Giovanni Petris
], pct)) ses - sqrt(diag(vcov(object))) fac - qt(a, object$df.residual) ci[] - cf + ses %o% fac ci } -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department

[R] Bus error with xyplot

2003-02-03 Thread Giovanni Petris
(quakes$depth, number = 8, overlap = 0.1) xyplot xyplot(lat ~ long | Depth, data = quakes) Bus error -- __ [ ] [ Giovanni Petris [EMAIL PROTECTED] ] [ Department of Mathematical