[R] Innovations algorithm

2010-12-12 Thread Mohamed Essaied Hamrita
Dear list, I am urgently searching an implementation of the classical innovations algorithm (see, e.g. Brockwell and Davis, Time Series: Theory and Methods) for time series prediction to be used with R (which unfortunately doesn't have this algorithm implemented). Mohamed [[alternative

Re: [R] Predator Prey Models

2010-12-12 Thread Berend Hasselman
Craig O'Connell-2 wrote: Dear R-users, I am currently modifying a previously developed predator prey model and was curious if there was a way to add in a disturbance to the model (let's say at time t=100). The disturbance can be the introduction of 40 prey (N=40) and 10 predators

[R] Help in defining vectors

2010-12-12 Thread skd
I am completely new to R . while defining a vector i get these following messages c-a(1,2) Error: could not find function a or c=a(1,2) Error: could not find function a Kindly advice, how to get rid of this. Thanks! -- View this message in context:

Re: [R] Help in defining vectors

2010-12-12 Thread Jinyan Huang
try a-c(1,2) On Sun, Dec 12, 2010 at 10:57 AM, skd warab...@gmail.com wrote: I am completely new to R . while defining a vector  i get these following messages  c-a(1,2) Error: could not find function a or  c=a(1,2) Error: could not find function a Kindly advice, how to get rid of

Re: [R] Help in defining vectors

2010-12-12 Thread Peter Ehlers
On 2010-12-12 01:57, skd wrote: I am completely new to R . while defining a vector i get these following messages c-a(1,2) Error: could not find function a or c=a(1,2) Error: could not find function a Kindly advice, how to get rid of this. Easy. Read 'An Introduction to R', chapter

Re: [R] (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?

2010-12-12 Thread Duncan Murdoch
On 11/12/2010 5:58 PM, Emmanuel Charpentier wrote: Dear list, Inspired by the original Knuth tools, and for paedaogical reasons, I wish to produce a document presenting some source code with interspersed comments in the source (see Knuth's books rendering TeX and metafont sources to see what I

Re: [R] help requested

2010-12-12 Thread Petr Savicky
On Sat, Dec 11, 2010 at 05:11:37AM -0800, profaar wrote: hi thanks for your reply. there are around 2 nodes in my dataset. will it work for conversion from edge list format to node list format? I am using R under Windows XP. Under Linux, with 20'000 nodes and 10 random edges from

Re: [R] (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?

2010-12-12 Thread Gabor Grothendieck
On Sat, Dec 11, 2010 at 5:58 PM, Emmanuel Charpentier emm.charpent...@free.fr wrote: Dear list, Inspired by the original Knuth tools, and for paedaogical reasons, I wish to produce a document presenting some source code with interspersed comments in the source (see Knuth's books rendering TeX

Re: [R] (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?

2010-12-12 Thread Liviu Andronic
On Sun, Dec 12, 2010 at 2:24 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Try the brew package. There is another package, markup, which is similar to brew and Sweave. See some comments in this thread [1]. To my knowledge it was never officially released, but you could still try it out.

[R] legend not appearing in Word document

2010-12-12 Thread Tim Clark
I need help with using graphics in Word 2007 that will later be converted into a pdf document.  I have tried several formats and found that I get the best quality of graphics using .wmf, .eps format, but when I convert it to .pdf I get a bunch of lines across the figures.  I also tried .tiff

Re: [R] legend not appearing in Word document

2010-12-12 Thread Duncan Murdoch
On 12/12/2010 8:59 AM, Tim Clark wrote: I need help with using graphics in Word 2007 that will later be converted into a pdf document. I have tried several formats and found that I get the best quality of graphics using .wmf, .eps format, but when I convert it to .pdf I get a bunch of lines

Re: [R] Why do we have to turn factors into characters for various functions?

2010-12-12 Thread Bert Gunter
Well ... because These are language design issues, and you therefore need to understand something about computer languages to understand the context. Here are brief answers that offer my take; others may be able to fill in or correct. 1. The factor type/class is R's version of C's enum

[R] Submissions that include an entire previous digest

2010-12-12 Thread Dennis Fisher
Colleagues, Today's digest (Volume 94, Issue 12) contained an entire copy of Digest, Vol 94, Issue 11. It appears that an inconsiderate poster (Message 39 in Issue 12) received the digest and clicked reply, thereby including the entire digest in his/her submission ( 6000 additional lines of

[R] R Plots for Recurrent Events - Suggestions are needed

2010-12-12 Thread Haoda Fu
Hi, I am wondering if there is a simple way to plot MCF(mean cumulative function) for recurrent events in R? MCF (http://www.weibull.com/hotwire/issue57/relbasics57.htm) And do you have some other recommendation in visualize recurrent events? I did some research online. Some people use

Re: [R] Submissions that include an entire previous digest

2010-12-12 Thread Dirk Eddelbuettel
On 12 December 2010 at 08:13, Dennis Fisher wrote: | Colleagues, | | Today's digest (Volume 94, Issue 12) contained an entire copy of Digest, Vol 94, Issue 11. It appears that an inconsiderate poster (Message 39 in Issue 12) received the digest and clicked reply, thereby including the entire

Re: [R] legend not appearing in Word document

2010-12-12 Thread Schalk Heunis
On Sun, Dec 12, 2010 at 3:59 PM, Tim Clark mudiver1...@yahoo.com wrote: I need help with using graphics in Word 2007 that will later be converted into a pdf document. I have tried several formats and found that I get the best quality of graphics using .wmf, .eps format, but when I convert it

[R] 95% CI of a IQR and more

2010-12-12 Thread Beckie
Hi guys! I have to calculate the 95% CI for the IQR. I have 100samples with continuous numbers using a compute-intensive method. 1)I can calculate the 95%CI and the IQR, but I don't know how to calculate the CI of the IQR, does anybody have any idea, which method will be appropriate? 2)I have a

Re: [R] legend not appearing in Word document

2010-12-12 Thread Schalk Heunis
Tim Works in Word 2002 on Windows XP with PDF-xchange 3.0 to convert to pdf. Saw reponse from Duncan - agree might be problem with Word 2007 PDF converter. HTH Schalk On Sun, Dec 12, 2010 at 3:59 PM, Tim Clark mudiver1...@yahoo.com wrote: I need help with using graphics in Word 2007 that

Re: [R] legend not appearing in Word document

2010-12-12 Thread Carl Witthoft
Have you tried opening your stuff in OpenOffice? Often that converts files better than M$oft Word. And you can save an OO.o document in .doc (and I believe .docx) format. __ R-help@r-project.org mailing list

Re: [R] Why do we have to turn factors into characters for various functions?

2010-12-12 Thread Erik Iverson
On 12/11/2010 04:48 PM, Tal Galili wrote: Hello dear R-help mailing list, My question is *not* about how factors are implemented in R (which is, if I understand correctly, that factors keeps numbers and assign levels to them). My question *is* about why so many functions that work on factors

Re: [R] 95% CI of a IQR and more

2010-12-12 Thread David Winsemius
On Dec 12, 2010, at 10:13 AM, Beckie wrote: Hi guys! I have to calculate the 95% CI for the IQR. I have 100samples with continuous numbers using a compute-intensive method. 1)I can calculate the 95%CI and the IQR, but I don't know how to calculate the CI of the IQR, does anybody have any

[R] list manipulation

2010-12-12 Thread andrija djurovic
Hi R users! Does anyone know command similar to cbind for adding a column to a object of the list. For example on this list: c1 $`1` x11 x22 1 1 1 2 1 2 3 1 3 4 1 4 5 1 5 $`2` x11 x22 6 2 6 7 2 7 8 2 8 9 2 9 10 2 10 11 2 11 i would like to add column, named random created with - runif(5)-, to

Re: [R] list manipulation

2010-12-12 Thread David Winsemius
On Dec 12, 2010, at 1:18 PM, andrija djurovic wrote: Hi R users! Does anyone know command similar to cbind for adding a column to a object of the list. For example on this list: c1 $`1` x11 x22 1 1 1 2 1 2 3 1 3 4 1 4 5 1 5 So item `1` is probably a data.frame. $`2` x11 x22 6 2 6 7 2

Re: [R] Why do we have to turn factors into characters for various functions?

2010-12-12 Thread Petr Savicky
On Sun, Dec 12, 2010 at 12:48:30AM +0200, Tal Galili wrote: Hello dear R-help mailing list, My question is *not* about how factors are implemented in R (which is, if I understand correctly, that factors keeps numbers and assign levels to them). My question *is* about why so many functions

[R] Tukey HSD not working

2010-12-12 Thread PGZC
DrugUS1 US2 Aptecha Celebrex235.54 269.99 121.02 Detrol LA 157.99 190.99 55.3 Flomax 166.00 190.99 93.45 Lipitor 174.99 200.99 137.7 Novaldex108.6 129.99 22.48 Norvasc 186.66 203.99 161.93 Plavix 107.99 106.99 64.53 Prevacid117.39

Re: [R] How to print colorful R output??

2010-12-12 Thread casperyc
Hi All, My aim is actually not that complicated as you guys understand. What I want is this, when I print it by clicking File-- Print... It gaves me a black white output. But what I want is 'red', for all the codes i typed in, 'blue', for the R output, just like the console. Thanks! (I

Re: [R] Why do we have to turn factors into characters for various functions?

2010-12-12 Thread Heinz Tuechler
At 12.12.2010 00:48 +0200, Tal Galili wrote: Hello dear R-help mailing list, My question is *not* about how factors are implemented in R (which is, if I understand correctly, that factors keeps numbers and assign levels to them). My question *is* about why so many functions that work on factors

Re: [R] Tukey HSD not working

2010-12-12 Thread Peter Ehlers
On 2010-12-12 10:21, PGZC wrote: DrugUS1 US2 Aptecha Celebrex235.54 269.99 121.02 Detrol LA 157.99 190.99 55.3 Flomax 166.00 190.99 93.45 Lipitor 174.99 200.99 137.7 Novaldex108.6 129.99 22.48 Norvasc 186.66 203.99 161.93 Plavix 107.99 106.99

Re: [R] legend not appearing in Word document

2010-12-12 Thread Tim Clark
Thanks, I will take it up with MS.  I just downloaded their latest converter and that hasn't fixed the issue.  Hopefully they will have additional advice. Aloha, Tim Tim Clark Marine Ecologist National Park of American Samoa Pago Pago, AS 96799 From:

Re: [R] Specifying Prior Weights in a GLM

2010-12-12 Thread Enrique Garcia
Hey Dennis, Thank you. This was helpful. It looks like the structure of my code was incorrect. I was using a variable containing proportions as my D.V. instead of using a two column vector. I re-ran the code using the following: Y-(successes/trials) -Enrique -- View this message in

Re: [R] legend not appearing in Word document

2010-12-12 Thread Gabor Grothendieck
On Sun, Dec 12, 2010 at 3:13 PM, Tim Clark mudiver1...@yahoo.com wrote: Thanks, I will take it up with MS.  I just downloaded their latest converter and that hasn't fixed the issue.  Hopefully they will have additional advice. Try installing the free bullzip printer driver and then try printing

[R] Summary (Re: (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?)

2010-12-12 Thread Emmanuel Charpentier
Dear list, see comment at end. On Sat, 11 Dec 2010 22:58:10 +, Emmanuel Charpentier wrote : Dear list, Inspired by the original Knuth tools, and for paedaogical reasons, I wish to produce a document presenting some source code with interspersed comments in the source (see Knuth's

Re: [R] Summary (Re: (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?)

2010-12-12 Thread Duncan Murdoch
On 12/12/2010 6:30 PM, Emmanuel Charpentier wrote: Dear list, see comment at end. On Sat, 11 Dec 2010 22:58:10 +, Emmanuel Charpentier wrote : Dear list, Inspired by the original Knuth tools, and for paedaogical reasons, I wish to produce a document presenting some source code with

[R] ggplot2 errorbarh

2010-12-12 Thread Brian Tsai
Hi, I'm having problems using the 'width' aesthetic attribute for the geom_errorbarh. This is the same problem reported earlier here, but I'll try to write the problem more clearly: http://www.mail-archive.com/r-help@r-project.org/msg62371.html The problem I'm having is that, the 'width'

Re: [R] Summary (Re: (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?)

2010-12-12 Thread Gabor Grothendieck
On Sun, Dec 12, 2010 at 6:30 PM, Emmanuel Charpentier emm.charpent...@free.fr wrote: Dear list, see comment at end. On Sat, 11 Dec 2010 22:58:10 +, Emmanuel Charpentier wrote : Dear list, Inspired by the original Knuth tools, and for paedaogical reasons, I wish to produce a document

Re: [R] ggplot2 errorbarh

2010-12-12 Thread Ben Bolker
Brian Tsai btsai00 at gmail.com writes: Hi, I'm having problems using the 'width' aesthetic attribute for the geom_errorbarh. This is the same problem reported earlier here, but I'll try to write the problem more clearly: http://www.mail-archive.com/r-help at

Re: [R] ggplot2 errorbarh

2010-12-12 Thread Brian Tsai
Hi Ben, Indeed this is what i wanted, thanks. height does make more sense, I guess I was just reading the ggplot2 documentation directly, which still refers to width. Brian On Sun, Dec 12, 2010 at 5:12 PM, Ben Bolker bbol...@gmail.com wrote: Brian Tsai btsai00 at gmail.com writes: Hi,

[R] Pure curiosity

2010-12-12 Thread Matt Cooper
Pure curiosity but does anyone know why '-' and '=' generate different columning headers? test - data.frame(V1=c(1,2,3), V2=c(4,5,6)) test V1 V2 1 1 4 2 2 5 3 3 6 test - data.frame(V1-c(1,2,3), V2-c(4,5,6)) test V1c.1..2..3. V2c.4..5..6. 114

Re: [R] Pure curiosity

2010-12-12 Thread robert denham
On Mon, Dec 13, 2010 at 1:09 PM, robert denham rjaden...@gmail.com wrote: in test - data.frame(V1=c(1,2,3), V2=c(4,5,6)) you are using arguments to the data.frame function in the tag=value format. From the help: ...: these arguments are of either the form ‘value’ or ‘tag =

Re: [R] Pure curiosity

2010-12-12 Thread Michael Bedward
Just to follow up on Robert's comment, If you do an ls() you'll see that you've created objects V1, V2 in your global environment. A very similar question was discussed last week (I think... it's all a blur) in the context of using - instead of = with named function arguments. Michael On 13

Re: [R] R Plots for Recurrent Events - Suggestions are needed

2010-12-12 Thread Michael Bedward
Hi Haoda, I couldn't find a package that implements this, although I'm not familiar with the field so there could be something but using different terminology. However, looking at the the Google preview of Nelson (2003) which is cited by the page that you linked to, the calculations seem very

[R] SAS /slice and /diff equivalent? - Automated multiple comparisons in nlme package?

2010-12-12 Thread Daniel Pereira
R users, What is the equivalent of SAS '/diff' and '/slice' in R ? I am successful in fitting the same model PROC MIXED fits using lme() : ###R code: model - lme( y ~ g + h + yr + yr:h, random = ~ 1 | b, data = yield) *** SAS code: proc mixed data=yield covtest cl method=reml; class b g h

[R] Plot's aspect ratio and pty

2010-12-12 Thread Marcin Kozak
Dear All, I've been playing with pty, and it seems it does not produce square plots as it is expected to (or at least as I expect it to). Consider this simple example: par(pty=s); plot(1:10, 1:10) This should produce a square plot, right? Well, if you have a look at the graph, it is not square!

[R] simple plotting question

2010-12-12 Thread Erin Hodgess
Dear R People: When I plot using type=b, I have circles and lines, which is as it should be. Is there a way to have filled in circles using the type argument, please? Or do I need to call the points function also, please? Thanks, Erin -- Erin Hodgess Associate Professor Department of

Re: [R] simple plotting question

2010-12-12 Thread Michael Bedward
Hello Erin, Try this... plot(x, y, type=b, pch=16) Michael On 13 December 2010 18:11, Erin Hodgess erinm.hodg...@gmail.com wrote: Dear R People: When I plot using type=b, I have circles and lines, which is as it should be. Is there a way to have filled in circles using the type

Re: [R] Why do we have to turn factors into characters for various functions?

2010-12-12 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 12.12.2010 21:00:37: At 12.12.2010 00:48 +0200, Tal Galili wrote: Hello dear R-help mailing list, My question is *not* about how factors are implemented in R (which is, if I understand correctly, that factors keeps numbers and assign levels to