[R] help()

2012-01-07 Thread John Sorkin
Confidentiality Statement: This email message, including any attachments, is for th...{{dropped:6}} __ 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-guid

[R] how to combine grouped data and ungrouped data in a trellis xyplot

2012-01-07 Thread Mike Dahman
I'm hoping the community knowledge can help me out here. I have found great value in R, especially using it to generate charts, but I am still scaling the learning curve in a number of ways. I am looking plot one grouped line and one ungrouped line in a lattice plot. I can plot one grouped line l

[R] PLM, Logical subscript too long, error

2012-01-07 Thread therrienak
I have created panel data set using specific variable from our data set. When I attempt to run plm I receive a Error in pdata.frame(data, index) : (subscript) logical subscript too long I am assuming that this error has to deal with my data frame that I have created. I can not determine where t

[R] repeated measures

2012-01-07 Thread Sanja Schreiber
Hi all, I have an issue I cannot solve myself and hope I can get some pointers here: I have a RCB design with 10 tree species each replicated 5 times in 5 blocks. Now, I classify all species according to their height in 3 groups (A, B and C). Now, I will choose 2 species of each group and take my

Re: [R] Help

2012-01-07 Thread Joshua Wiley
I think you meant help() ... R is case sensitive ;P On Sat, Jan 7, 2012 at 3:35 PM, Jeff Newmiller wrote: > > --- > Jeff Newmiller                        The     .       .  Go Live... > DCN:        Basics: ##.#.    

[R] Help

2012-01-07 Thread Jeff Newmiller
--- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Sola

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread peter dalgaard
On Jan 7, 2012, at 23:29 , Rolf Turner wrote: > > The fact that I don't really understand any of this stuff and am basically > groping around in the dark, hammering and hoping, doesn't make it > any easier! :-) As if it weren't confusing enough when working as intended, there appears to have b

Re: [R] need help

2012-01-07 Thread Joshua Wiley
On Sat, Jan 7, 2012 at 3:13 PM, John Sorkin wrote: > Peter, > I have sympathy for Dong. It would be helpful if the message at the bottom of > the Email were modified to be more directive, e.g. > > To modify your subscription (e.g. hold mail delivery during a vacation, > unsubscribe, etc.) go to

Re: [R] need help

2012-01-07 Thread Jeff Newmiller
Your message puzzles me. It looks like you sent a message to h...@r-project.org instead of R-help@r-project.org. The latter bounces to all readers of this list, and the former does not appear to be valid. What instructions did you think you were following? ---

Re: [R] need help

2012-01-07 Thread John Sorkin
Peter, I have sympathy for Dong. It would be helpful if the message at the bottom of the Email were modified to be more directive, e.g. To modify your subscription (e.g. hold mail delivery during a vacation, unsubscribe, etc.) go to https://stat.ethz.ch/mailman/listinfo/r-help To make matters

Re: [R] glm or transformation of the response?

2012-01-07 Thread Rolf Turner
On 08/01/12 05:54, emily wrote: Hi Dr. Snow, This is the r-help mailing list, not Greg Snow's private email. If you just want to email Dr. Snow, then email *him* (his address was given in the post to which you replied). I am not using R at the moment (working in SPSS, have to love the GUI)

Re: [R] glm or transformation of the response?

2012-01-07 Thread Joshua Wiley
Hi Emily, This is the R-help forum---it is for R questions, not basic statistics. You should check out http://stats.stackexchange.com/ for those type of questions. glm(log(y) ~ x, poisson(link = "identity")) is not the same as glm(y ~ x, poisson(link = "log")), so I am not surprised you are gett

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread Rolf Turner
On 08/01/12 04:38, Gabor Grothendieck wrote: These two variations without bquote and the third which just replaces for with while all (that I had previously posted) do work: # 1 junk<- vector("list",4) for(i in 1:4) { junk[[i]]<- eval(substitute(function(x) { 42 + i * x }, list(i = i

[R] k-means++

2012-01-07 Thread Ferebee Tunno
Hi everyone - I know that R is capable of clustering using the k-means algorithm, but can R do k-means++ clustering as well? Thanks, -- Dr. Ferebee Tunno Assistant Professor Department of Mathematics and Statistics Arkansas State University P.O. Box 70 State University, AR. 72467 ftu...@astate.

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread Rolf Turner
On 08/01/12 05:24, Carl Witthoft wrote: Now that we've all satisfied our curiosity :-) about force() in for and while loops, I suppose it would be impolite to ask Rolf whether there isn't a much neater and simpler way to make his internal functions grab whatever the index 'i' is pointing them

Re: [R] need help

2012-01-07 Thread peter dalgaard
On Jan 7, 2012, at 20:26 , Dong Nie wrote: > Hi Sir, > Could you help me to unsubscribe the R help? Follow the link at the bottom of every post. > Thanks, > Dong > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing li

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread cberry
Duncan Murdoch writes: > On 12-01-06 10:21 PM, Rolf Turner wrote: >> On 07/01/12 15:51, R. Michael Weylandt wrote: >>> I imagine the answer will involve lazy evaluation and require you use >>> force() but I'm not quite qualified to pronounce and not at a computer to >>> test. >> >> I think you

[R] need help

2012-01-07 Thread Dong Nie
Hi Sir, Could you help me to unsubscribe the R help? Thanks, Dong [[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/po

Re: [R] colouring a table, data.frame or matrix in an interactive R session

2012-01-07 Thread Michael Friendly
On 1/7/2012 5:48 AM, drflxms wrote: Hi everybody, as I am dealing with complex confusion matrices, I wonder whether there might be a way to colour text/tabular data in R. I.e. imagine highlighting the true positive values or certain classes in a table. I know how to colour text in graphical out

Re: [R] rcom package - Events

2012-01-07 Thread Uwe Ligges
On 07.01.2012 15:02, AAsk wrote: I have downloaded the PDF/manual for rcom from http://cran.us.r-project.org/web/packages/rcom/index.html. Unfortunately, this guide does not cover the topic of setting event handlers for Excel (COM Server). Can someone provide me with some clues - either code

Re: [R] glm or transformation of the response?

2012-01-07 Thread emily
Hi Dr. Snow, I am a graduate student working on analyzing data for my thesis and came across your post on an R forum: The default link function for the glm poisson family is a log link, which means that it is fitting the model: log(mu) ~ b0 + b1 * x But the data that you generate is b

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread Carl Witthoft
Now that we've all satisfied our curiosity :-) about force() in for and while loops, I suppose it would be impolite to ask Rolf whether there isn't a much neater and simpler way to make his internal functions grab whatever the index 'i' is pointing them to? -- Sent from my Cray XK6 "Pendeo

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread jim holtman
Here is yet another way of doing it using 'local': > junk<- vector("list",4) > for(i in 1:4) { + junk[[i]] <- local({ + local_i <- i + function(x) 42 + local_i * x + }) + } > for (i in 1:4) cat(i, junk[[i]](1), '\n') 1 43 2 44 3 45 4 46 On Sat, Jan 7, 2012 at 10:38 AM

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread Gabor Grothendieck
On Sat, Jan 7, 2012 at 10:23 AM, Duncan Murdoch wrote: > On 12-01-06 10:21 PM, Rolf Turner wrote: >> >> On 07/01/12 15:51, R. Michael Weylandt  wrote: >>> >>> I imagine the answer will involve lazy evaluation and require you use >>> force() but I'm not quite qualified to pronounce and not at a com

Re: [R] Sweave Chunks

2012-01-07 Thread Duncan Murdoch
On 12-01-07 10:03 AM, Riccardo Romoli wrote: Thank for your answare, but I'm talking about doing this in EMACS. Should I ask this to the ESS mailing list?? Yes. Duncan Murdoch Best Riccardo On 07/gen/12, at 15:52, Duncan Murdoch wrote: On 12-01-06 6:46 PM, Riccardo Romoli wrote: Hi, i

Re: [R] Putting an index explicitly into function code --- a curiosity.

2012-01-07 Thread Duncan Murdoch
On 12-01-06 10:21 PM, Rolf Turner wrote: On 07/01/12 15:51, R. Michael Weylandt wrote: I imagine the answer will involve lazy evaluation and require you use force() but I'm not quite qualified to pronounce and not at a computer to test. I think you've got it; I tried junk<- vector("list",4

Re: [R] Sweave Chunks

2012-01-07 Thread Riccardo Romoli
Thank for your answare, but I'm talking about doing this in EMACS. Should I ask this to the ESS mailing list?? Best Riccardo On 07/gen/12, at 15:52, Duncan Murdoch wrote: On 12-01-06 6:46 PM, Riccardo Romoli wrote: Hi, is there a way to collapse/expand the Sweave chunks? Use chunk optio

Re: [R] Sweave Chunks

2012-01-07 Thread Duncan Murdoch
On 12-01-06 6:46 PM, Riccardo Romoli wrote: Hi, is there a way to collapse/expand the Sweave chunks? Use chunk option echo=FALSE to hide the R code in the output. If you're talking about doing this in your editor, you're asking in the wrong place. Duncan Murdoch Best Riccardo __

Re: [R] using deltat parameter in time series in HoltWinters prediction

2012-01-07 Thread Antonio Tirri
On 7 January 2012 14:54, Antonio Tirri wrote: > > I don't have a statistics advisor, my computer networks tutor said to me > "try to forecast time series values with ARIMA models". > Sorry, ARIMA and HoltWinters. > > > > > > On 7 January 2012 13:28, Prof Brian Ripley >>

Re: [R] using deltat parameter in time series in HoltWinters prediction

2012-01-07 Thread Antonio Tirri
On 7 January 2012 14:34, Prof Brian Ripley wrote: > > And what did your statistics advisor say? The problem is your > understanding of the words 'sampling period'. > I don't have a statistics advisor, my computer networks tutor said to me "try to forecast time series values with ARIMA models".

Re: [R] using deltat parameter in time series in HoltWinters prediction

2012-01-07 Thread Antonio Tirri
Excuseme Prof Ripley, but on the help page of ts() there is written: "deltat = the fraction of the sampling period between successive observations; e.g., 1/12 for monthly data. Only one of frequency or deltat should be provided." I have a collection of bitrate values over a link and the distance

[R] rcom package - Events

2012-01-07 Thread AAsk
I have downloaded the PDF/manual for rcom from http://cran.us.r-project.org/web/packages/rcom/index.html. Unfortunately, this guide does not cover the topic of setting event handlers for Excel (COM Server). Can someone provide me with some clues - either code or a url which will help me do this?

Re: [R] using deltat parameter in time series in HoltWinters prediction

2012-01-07 Thread Prof Brian Ripley
On 07/01/2012 13:18, Antonio Tirri wrote: Excuseme Prof Ripley, but on the help page of ts() there is written: || "deltat = the fraction of the sampling period between successive observations; e.g., 1/12 for monthly data. Only one of frequency or deltat should be provided." I have a collection

Re: [R] using deltat parameter in time series in HoltWinters prediction

2012-01-07 Thread Prof Brian Ripley
Do check the help page for ts. You are trying to fit a seasonal model with a period of about 600 million observations. I don't know what seasonality you are actually trying to model, but it cannot be yearly for data of that frequency (and you would need several years of data). This is not an

Re: [R] constructing yieldcurve

2012-01-07 Thread Enrico Schumann
Hi André, I think some tools for this are implemented in 'RQuantLib', but you may want to browse the finance task view: http://cran.r-project.org/web/views/Finance.html for finding some other packages. There is also a mailing list dedicated to finance: https://stat.ethz.ch/mailman/listinf

[R] using deltat parameter in time series in HoltWinters prediction

2012-01-07 Thread Antonio Tirri
Hi. I have to forecast a time series of a Internet network traffic bitrate. The data are in file http://www.forumaltavilla.it/joomla/datitesi/dati.datand the sampling time is every 0.05 seconds. Now, i want to use HoltWinters forecasting. This is my script. dt=1.58443823e-9 #0.05 seconds in years

[R] colouring a table, data.frame or matrix in an interactive R session

2012-01-07 Thread drflxms
Hi everybody, as I am dealing with complex confusion matrices, I wonder whether there might be a way to colour text/tabular data in R. I.e. imagine highlighting the true positive values or certain classes in a table. I know how to colour text in graphical output as well as how to sweave or odfWea

[R] constructing yieldcurve

2012-01-07 Thread André de Boer
Hello, With which package can I build a yield curve using swap data with the bootstrapping method? Thanks for the reaction, André [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] SSA in R

2012-01-07 Thread marco
Hi everyone I'm here with a brief question: Does anyone have some idea on how to perform Smallest Space Analysis in R? I'm aware of several packages/methods for non metric multidimensional scaling, but no clue about this specific technique. Thanks for any feedback Marco -- View this message in