Re: [R] efficient way to compute a probability distribution?

2007-08-25 Thread Antonio, Fabio Di Narzo
://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. -- Antonio, Fabio Di Narzo Ph.D. student at Department of Statistical Sciences University of Bologna, Italy

Re: [R] compare 2 vectors

2007-06-28 Thread Antonio, Fabio Di Narzo
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Antonio, Fabio Di Narzo Ph.D. student at Department of Statistical Sciences University of Bologna, Italy __ R-help@stat.math.ethz.ch mailing list https

[R] [R-pkgs] RTisean 3.0-7 released

2007-03-23 Thread Antonio, Fabio Di Narzo
Dear R users, I've just uploaded to CRAN a new version of RTisean, the TISEAN-to-R interface. This is now compatible with the recent, new 3.0.1 release of TISEAN [1]. This new TISEAN version is explicitely GPL-ed, and has some more routines handling multivariate time series. Bests, Antonio, Fabio

Re: [R] Neural Net forecasting

2007-02-23 Thread Antonio, Fabio Di Narzo
]] __ 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. -- Antonio, Fabio Di Narzo Ph.D. student at Department

Re: [R] curious about dimension of 'apply' output when MARGIN=1

2007-01-17 Thread Antonio, Fabio Di Narzo
. __ 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. -- Antonio, Fabio Di Narzo Ph.D. student at Department

Re: [R] Skipping Results with Errors in a Loop

2006-12-13 Thread Antonio, Fabio Di Narzo
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Antonio, Fabio Di Narzo Ph.D. student at Department of Statistical Sciences University of Bologna, Italy __ R-help@stat.math.ethz.ch

[R] Trouble passing arrays to C code

2006-12-02 Thread Antonio, Fabio Di Narzo
__ 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. -- Antonio, Fabio Di Narzo Ph.D

Re: [R] t.test()

2006-11-23 Thread Antonio, Fabio Di Narzo
23 Nov 2006 14:48:31 +0100, Peter Dalgaard [EMAIL PROTECTED]: ONKELINX, Thierry [EMAIL PROTECTED] writes: There is no such thing as an unpaired t-test. A t-test can be a paired, one sample or two sample t-test. Since you want to compare the sample against a given mean, you need a one

[R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Antonio, Fabio Di Narzo
real problem should be restated as: how to safely dump (and then load) an object which has a (perhaps valid) tsp attribute? More generally: can someone suggest me a safer way to dump/restoring R objects? Tnx all, Antonio. -- Antonio, Fabio Di Narzo Ph.D. student at Department of Statistical

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Antonio, Fabio Di Narzo
2006/11/23, Prof Brian Ripley [EMAIL PROTECTED]: On Thu, 23 Nov 2006, Antonio, Fabio Di Narzo wrote: Dear all, I'm indirectly faced with the fact that setting the 'tsp' attribute of an object modifies its class definition: class( structure(1:2, tsp=c(1,2,1), class=c(myts,ts)) ) [1] ts

Re: [R] dumping/loading objects with 'tsp' attribute

2006-11-23 Thread Antonio, Fabio Di Narzo
2006/11/23, Gabor Grothendieck [EMAIL PROTECTED]: On 11/23/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 11/23/06, Antonio, Fabio Di Narzo [EMAIL PROTECTED] wrote: 2006/11/23, Prof Brian Ripley [EMAIL PROTECTED]: On Thu, 23 Nov 2006, Antonio, Fabio Di Narzo wrote: Dear all

Re: [R] [Rd] How to link to vignette from .Rd file

2006-11-08 Thread Antonio, Fabio Di Narzo
2006/11/8, Agner Fog [EMAIL PROTECTED]: Thanks for the tip. I had thought of using the demo facility for this but I didn't know how to check for the operating system. See help about '.Platform'. I.e., .Platform$OS.type can be useful. This is a clumsy solution, but better than nothing. I

Re: [R] (no subject)

2006-11-01 Thread Antonio, Fabio Di Narzo
put the constrained predictor in the model offset ('offset' argument in 'lm'). i.e.: set.seed(10) X - matrix(rnorm(20), 10, 2) y - X %*% c(1,2) + rnorm(10) coef(lm(y ~ X[,2], offset=X[,1])) (Intercept) X[, 2] -0.8009112 1.6968198 coef(lm(I(y-X[,1]) ~ X[,2])) (Intercept) X[, 2]

Re: [R] Recurrence plot in package tseriesChaos

2006-10-23 Thread Antonio, Fabio Di Narzo
Hi Joy. 2006/10/23, Joydeep [EMAIL PROTECTED]: Hi, I'm a new user of the R package, and I need to generate recurrence plots for a set of 56 time series data. The package tseriesChaos has the function recurr that gives a plot. But what I really need are the recurrence plot parameters that

Re: [R] Recipe: Print a Color Sampler

2006-10-22 Thread Antonio, Fabio Di Narzo
Really fine. Should this go on the wiki? Antonio. 2006/10/22, Gabor Grothendieck [EMAIL PROTECTED]: Here it is again corrected: getColorName - function(colorNumber) colors()[colorNumber] printColorSampler - function(n = 0) { i - seq(colors()) k - ceiling(sqrt(length(i))) xy -

Re: [R] Automatical download of needed packages from CRAN

2006-09-29 Thread Antonio, Fabio Di Narzo
install.packages(foo, dep=Depends) See online help. I think that the GUI version of install.packages automatically does that. Antonio. 2006/9/29, Søren Højsgaard [EMAIL PROTECTED]: I write a package foo which requires a package bar (from CRAN) to work. So in the DESCRIPTION file I write

Re: [R] [Rd] Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)

2006-09-20 Thread Antonio, Fabio Di Narzo
Hi. 2006/9/20, Marc Schwartz [EMAIL PROTECTED]: Hi all, On FC5, using: Version 2.3.1 Patched (2006-08-06 r38829) and today's R version 2.4.0 alpha (2006-09-19 r39397) with the following .Rnw file: \documentclass[10pt]{article} \begin{document} This line should print '2':

Re: [R] Connecting to a SQLBASE database with R

2006-09-08 Thread Antonio, Fabio Di Narzo
The ODBC protocol is a widely used standard for accessing databases sources, especially under m$ windows. I think you can use RODBC for accessing your SQLBASE data, at least after some machine configuration... Antonio. 2006/9/8, SPIESSER Vincent [EMAIL PROTECTED]: Hi, I am trying to extract

Re: [R] problem with putting objects in list

2006-09-06 Thread Antonio, Fabio Di Narzo
Use 'sapply' instead of 'lapply'. Type ?lapply for details Antonio, Fabio Di Narzo. University of Bologna, Italy 2006/9/6, Rainer M Krug [EMAIL PROTECTED]: Hi I use the following code and it stores the results of density() in the list dr: dens - function(run) { density( positions$X

[R] [R-pkgs] tsDyn and RTisean packages on CRAN

2006-07-21 Thread Antonio, Fabio Di Narzo
appreciated Antonio, Fabio Di Narzo Dipartimento di Statistica Università degli studi di Bologna. ___ R-packages mailing list [EMAIL PROTECTED] https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help

Re: [R] Building packages in R - 'private' functions

2006-06-07 Thread Antonio, Fabio Di Narzo
1. If you have time to change internal functions naming, you can rename internal functions by putting a leading '.'. Even without namespace, I have noticed there is no check for corresponding docs for such functions. 2. If you don't want to rename all internal functions, the best way is writing

[R] strange (to me) ncolumns default value in 'write'

2006-06-04 Thread Antonio, Fabio Di Narzo
, Antonio, Fabio Di Narzo. Note: this is just curiosity. Don't read as: WHY? WHY!?!?, but just as why? [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] missed ylim from plot.default

2006-05-26 Thread Antonio, Fabio Di Narzo
2006/5/26, Peter Ehlers [EMAIL PROTECTED]: Antonio, Fabio Di Narzo wrote: Hi all. On my R-2.3.0, calling: plot(1:5, rep(1,5), xlim=c(-0.5,7), ylim=c(-0.5,2.8), asp=1) gives to me a plot (tried pdf and X11) whose y axis goes from about -2 to about 4.5. What I've missed? How

Re: [R] Is there a way to draw 3d plot?

2006-05-26 Thread Antonio, Fabio Di Narzo
2006/5/26, Michael [EMAIL PROTECTED]: On 5/26/06, Uwe Ligges [EMAIL PROTECTED] wrote: Michael wrote: Hi all, I have a 2D matrix, which has 100 rows, and 100 columns, I have a 2D matrix, with 100 rows and 100 columns, I want to display it using 3D plot, much like plot3d

[R] missed ylim from plot.default

2006-05-25 Thread Antonio, Fabio Di Narzo
)? Tnx all, Antonio, Fabio Di Narzo. [[alternative HTML version deleted]] __ 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

[R] extracting values from data.frame given arbitrary keys

2006-05-18 Thread Antonio, Fabio Di Narzo
isn't the point. The point is that I have somewhere a ready sequence of IDs from which obtaining corresponding data. Note that I don't know if some ID combination exists in the database. Some suggestions on a good way to do this? Tnx all, Antonio, Fabio Di Narzo. [[alternative HTML version

Re: [R] SQL like manipulations on data frames

2006-05-08 Thread Antonio, Fabio Di Narzo
Do you know the RSQLite package? It uses the DBI package which gives a common interface to various DB engines. With it, you can explicitely treat data.frames as tables, and execute SQL querys on them. Antonio, Fabio Di Narzo. 2006/5/5, Robert Citek [EMAIL PROTECTED]: Is there a cheat-sheet

[R] question on residuals df in weighted linear regression

2006-04-29 Thread Antonio, Fabio Di Narzo
, Fabio Di Narzo. [[alternative HTML version deleted]] __ 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

[R] as.factor: changed behaviour for Date class

2006-04-27 Thread Antonio, Fabio Di Narzo
(times, each=2) vals - rep(1:2,5) tapply(vals, id, mean) Under R-2.2.1 this gives: 1970-01-02 1970-01-03 1970-01-04 1970-01-05 1970-01-06 1.51.51.51.51.5 But under R-2.3.0 the output is: 1 2 3 4 5 1.5 1.5 1.5 1.5 1.5 Antonio, Fabio Di Narzo

Re: [R] [Rd] R 2.3.0: Use of NULL as an environment is deprecated

2006-04-26 Thread Antonio, Fabio Di Narzo
the problem was solved. I had the same problem with a package of mines (not on CRAN). The problem was an imported package that was compiled for R-2.2.0. Tnx all for solving my problem just before posting it on the list:D Antonio, Fabio Di Narzo. [[alternative HTML version deleted

Re: [R] garch warning

2006-04-24 Thread Antonio, Fabio Di Narzo
example, if you can. Antonio, Fabio Di Narzo. 2006/4/24, stat stat [EMAIL PROTECTED]: Dear r users, Few days ago I posted the same topic but unable to receive any suggestion. So I am asking this same question. I was trying to fit a garch(1,1) model to my dataset. But while executing I got

[R] latex-like array in Rd documents

2006-04-12 Thread Antonio, Fabio Di Narzo
Hi all. Is it possible to use something like latex array environments in Rd files? This is just for typesetting a formula of the type: something=a if TRUE, b if FALSE in two lines instead of one line. Any suggestion is wellcome. Antonio, Fabio Di Narzo. [[alternative HTML version

Re: [R] cross product

2006-04-09 Thread Antonio, Fabio Di Narzo
in the matrix algebra, maybe you want the following: crossprod(crossprod(t(X),sigma),X) where X is the 'n by d' matrix of covariates, and sigma the 'd by d' matrix of assigned covariances. Antonio, Fabio Di Narzo. Thanks for your help. Yulei [[alternative HTML version deleted

[R] GARCH Forecast?

2006-03-30 Thread Antonio, Fabio Di Narzo
can't see any 'n.ahead' argument support documented. Antonio, Fabio Di Narzo. * ESTIMATION WITH ANALYTICAL GRADIENT * Error in qr(com.hess$hess, ...) : unused argument(s) (n.ahead ...) What did I do wrong? Thank you. Best regards, Peter Arnold, CFA President PRA Investment

[R] create a gui with a button to change graphic?

2006-03-20 Thread Antonio, Fabio Di Narzo
See demos in the tcltk package. I remember there was some example of interactive graphics, with buttons to change graphical parameters. You can start from there... Antonio, Fabio Di Narzo. 2006/3/20, Gael de Lannoy [EMAIL PROTECTED]: Hello everybody, I am wondering if it is possible

[R] fitting problems detection in nnet

2006-03-17 Thread Antonio, Fabio Di Narzo
model as possibly wrong. For example, is there a way for checking if convergence was reached during error criterion optimization? Tnx all, Antonio, Fabio Di Narzo. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] variance from correlated observations

2006-03-15 Thread Antonio, Fabio Di Narzo
) for obtaining such estimate from an observed vector X[1:n]? Tnx all, Antonio, Fabio Di Narzo. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] how to get the row name?

2006-01-30 Thread Antonio, Fabio Di Narzo
has suggested: rownames(subset(mydata, X =0)) Antonio, Fabio Di Narzo. Chuck Cleland wrote: rownames(subset(mydata, X =0)) ?rownames Leaf Sun wrote: Hi R-listers, I have a simple question about a data frame. I sorted a data set by one of the variable in some condition (eg

Re: [R] Fit non-lineair 3D Data

2005-12-19 Thread Antonio, Fabio Di Narzo
appropriate. Antonio, Fabio Di Narzo. Is there a way to fit this data? Thanks for your time by reading this, hopefully I will get an answer. Bart Joosen [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

[R] typo error in sink help page

2005-12-17 Thread Antonio, Fabio Di Narzo
In 'sink' help page (R version 2.2.0), you can read, in details: If 'file' is a connection if will be opened if necessary. Maybe: If 'file' is a connection it will be opened if necessary. Antonio, Fabio Di Narzo. [[alternative HTML version deleted

[R] bug in geoR (?)

2005-12-13 Thread Antonio, Fabio Di Narzo
, Fabio Di Narzo. [[alternative HTML version deleted]] __ 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

Re: [R] getting variable length numerical gradient

2005-09-27 Thread Antonio, Fabio Di Narzo
to differenziate. Best, Dimitris - Original Message - From: Antonio, Fabio Di Narzo [EMAIL PROTECTED] To: Dimitris Rizopoulos [EMAIL PROTECTED] Cc: R-help@stat.math.ethz.ch Sent: Monday, September 26, 2005 10:58 AM Subject: Re: getting variable length numerical gradient Tnx very

Re: [R] getting variable length numerical gradient

2005-09-26 Thread Antonio, Fabio Di Narzo
)? Best, Antonio, Fabio Di Narzo. On 9/25/05, Dimitris Rizopoulos [EMAIL PROTECTED] wrote: maybe you can find the following function useful (any comments are greatly appreciated): fd - function(x, f, scalar = TRUE, ..., eps = sqrt(.Machine$double.neg.eps)){ f - match.fun(f) out

[R] getting variable length numerical gradient

2005-09-25 Thread Antonio, Fabio Di Narzo
have to pass the list of variables involved as a char vector... So, it's a pure R programming question. Have a nice sunday, Antonio, Fabio Di Narzo. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] ts.intersect bug?

2005-09-21 Thread Antonio, Fabio Di Narzo
This code gives an error: a - ts(1:10, start=0, freq=10) b - ts(1:10, start=1, freq=10) ts.intersect(a,b) This one works normally (and correctly): a - ts(1:10, start=0) b - ts(1:10, start=1) ts.intersect(a,b) Antonio, Fabio Di Narzo. P.S. How to switch off italian error messages to post

[R] Fwd: ts.intersect bug?

2005-09-21 Thread Antonio, Fabio Di Narzo
-- Forwarded message -- From: Antonio, Fabio Di Narzo [EMAIL PROTECTED] Date: 21-set-2005 15.34 Subject: Re: [R] ts.intersect bug? To: Martin Maechler [EMAIL PROTECTED] 2005/9/21, Martin Maechler [EMAIL PROTECTED]: AntonioFDN == Antonio, Fabio Di Narzo [EMAIL PROTECTED

Re: [R] Fwd: ts.intersect bug?

2005-09-21 Thread Antonio, Fabio Di Narzo
2005/9/21, Gabor Grothendieck [EMAIL PROTECTED]: On 9/21/05, Antonio, Fabio Di Narzo [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Antonio, Fabio Di Narzo [EMAIL PROTECTED] Date: 21-set-2005 15.34 Subject: Re: [R] ts.intersect bug? To: Martin Maechler [EMAIL

Re: [R] TeX distribution on Windows

2005-09-05 Thread Antonio, Fabio Di Narzo
With my windows installation, MikTeX works fine, without any problem in compiling packages documentation. Antonio, Fabio Di Narzo. 2005/9/5, Göran Broström [EMAIL PROTECTED]: I'm looking for a Windows distribution of TeX that works with R, after a few years' absence from Windows. On Duncan

[R] source package linking problem under linux

2005-09-02 Thread Antonio, Fabio Di Narzo
for package 'MCMCpack' I don't know why it searches a reference to 'main'... Antonio, Fabio Di Narzo. version _ platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major2 minor1.1 year 2005 month06 day 20 language R

Re: [R] source package linking problem under linux

2005-09-02 Thread Antonio, Fabio Di Narzo
02 Sep 2005 18:15:22 +0200, Peter Dalgaard [EMAIL PROTECTED]: Antonio, Fabio Di Narzo [EMAIL PROTECTED] writes: I'm having some problems in installing some source packages under linux. As an example, MCMCpack. An error is raised when linking: install.packages(MCMCpack

Re: [R] Anybody have a binary version of SJava for rw2001 (Windows)?

2005-07-27 Thread Antonio, Fabio Di Narzo
in building it, in which case I fear you have to stand by a little more... Antonio, Fabio Di Narzo. Il giorno mar, 26/07/2005 alle 23.39 +0100, Quin Wills ha scritto: I am not a techie and have been struggling 2 days solid to try and install SJava (the source from http://www.omegahat.org/RSJava/). Does

[R] [R-pkgs] tseriesChaos ver. 0.1

2005-07-23 Thread Antonio, Fabio Di Narzo
code inspired from the book of Chan and Tong (2001) (Chaos: A Statistical perspective) by Springer as well as other contributions. Checking was mainly done by comparing results with those available in literature. Any kind of feedback/help would be greatly appreciated. Antonio, Fabio Di Narzo