Re: [R] Loop to check for large dataset

2016-10-08 Thread Christoph Puschmann
Dear Adrian, Yes it is a cyclical data set and theoretically it should repeat this interval until 61327. The data set itself is divided into 2 Parts: 1. Product category (column 10) 2. Number of Stores Participating (column 01) Overall there are 22 different products and in each you have 19

Re: [R] bquote in list to be used with do.plot()

2016-10-08 Thread David Winsemius
> On Oct 8, 2016, at 9:50 AM, Marc Girondot via R-help > wrote: > > Dear members, > > Has someone have a solution to include a bquote() statement in a list to be > used with do.call() ? > > Here is an exemple: >scaleY <- 1 >plot(x=1, y=1,

Re: [R] print (names and) values of parameters of function

2016-10-08 Thread David Winsemius
> On Oct 8, 2016, at 7:21 AM, Christian Hoffmann > wrote: > > I try to print (names and) values of parameters of a function within that > function, like: > > F <- function(x, y, z=4, ...) { > > print("x = ", x, " , y = ", y, "... = " , ...) > > in a fashion that

Re: [R] [FORGED] simulate AR1 process with uniform distribution and different y0 values

2016-10-08 Thread Rolf Turner
On 09/10/16 09:42, Ashwini Patil wrote: Hello I need to plot an ar1 graph for process yk=0.75y (k-1) + ek, for y0=1 and another graph for y0=10. assume ek is uniformly distributed on interval [-0.5,0.5]. i have the following code but i am not sure how to control y0.

[R] simulate AR1 process with uniform distribution and different y0 values

2016-10-08 Thread Ashwini Patil
Hello I need to plot an ar1 graph for process yk=0.75y (k-1) + ek, for y0=1 and another graph for y0=10. assume ek is uniformly distributed on interval [-0.5,0.5]. i have the following code but i am not sure how to control y0. #--#Start#-# rm(list=ls()) library(tseries)

[R] print (names and) values of parameters of function

2016-10-08 Thread Christian Hoffmann
I try to print (names and) values of parameters of a function within that function, like: F <- function(x, y, z=4, ...) { print("x = ", x, " , y = ", y, "... = " , ...) in a fashion that avoids the explicit mention of "x = ", x, " , y = ", y, "... = " , ... Combinations of eval,

Re: [R] how to work ttkspinbox ? win BUG ??

2016-10-08 Thread Fox, John
Dear Cleber, I can verify this problem on Windows; my session info: -- snip > sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) locale: [1] LC_COLLATE=English_Canada.1252

Re: [R] how to work ttkspinbox ? win BUG ??

2016-10-08 Thread Cleber N.Borges via R-help
thanks David for your help thanks for your help, David I suspect that there are a bug in windows version... :-( cleber ### > library( tcltk ) > t <- tktoplevel() > s = ttkspinbox(t, from = 1.0, to = 100.0, textvariable='spinval') Error in

Re: [R] “log-rank test” and “Kaplan Meier actuarial plots (time to event curve)”

2016-10-08 Thread David Winsemius
> On Oct 7, 2016, at 3:56 PM, Steven Stoline wrote: > > Dear All: > > > > I do need your help with the “log-rank test” and “Kaplan Meier actuarial > plots (time to event curve)” with adding the confidence intervals bands for > the average score for each time to the curve

Re: [R] how to work ttkspinbox ?

2016-10-08 Thread David Winsemius
> On Oct 7, 2016, at 7:15 PM, Cleber N.Borges via R-help > wrote: > > hello all, > > somebody have a example of use of ttkspinbox ? > I tried to use like others widgets but I get error. > > Thanks in advanced for any help > > cleber > > ### > >

Re: [R] Least Median Square Regression

2016-10-08 Thread Enrico Schumann
On Sat, 08 Oct 2016, Bryan Mac writes: > I am confused reading the document. > > I have installed and added the package (MASS). > > What is the function for LMS Regression? > In MASS, it is 'lqs'. But the vignette provides a code example for how to compute 'manually' an

Re: [R] Least Median Square Regression

2016-10-08 Thread Bert Gunter
Well, first of all, note that there is no "lms" method for the stats package's lm() function. You can't just make stuff up, you know! And second, ?lmsreg -- after loading MASS via library(MASS), if you haven't already done this after your install -- is what you want. Other than ?lmsreg and what

Re: [R] Least Median Square Regression

2016-10-08 Thread Bryan Mac
I am confused reading the document. I have installed and added the package (MASS). What is the function for LMS Regression? Bryan Mac bryanmac...@gmail.com > On Oct 8, 2016, at 6:17 AM, Enrico Schumann wrote: > > On Sat, 08 Oct 2016, Bryan Mac

Re: [R] bquote in list to be used with do.plot()

2016-10-08 Thread Bert Gunter
(Sent too early by mistake) ... and I find that this a bit more transparent: L <- list(x=1,y=1, ylab = bquote( expression(.(z)^-1), where=list(z = format(scaleY, scientific=FALSE Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep

Re: [R] bquote in list to be used with do.plot()

2016-10-08 Thread Bert Gunter
I think there's an error here, although it doesn't affect the result. It should be: L <- list(x=1, y=1, ylab=bquote(expression(.(format(scaleY, scientific=FALSE)^"-1" Bert Gunter "The trouble with having an open mind is that people keep coming

Re: [R] bquote in list to be used with do.plot()

2016-10-08 Thread Duncan Murdoch
On 08/10/2016 12:50 PM, Marc Girondot via R-help wrote: Dear members, Has someone have a solution to include a bquote() statement in a list to be used with do.call() ? Here is an exemple: scaleY <- 1 plot(x=1, y=1, ylab=bquote(.(format(scaleY), scientific=FALSE)^"-1")) Like

[R] bquote in list to be used with do.plot()

2016-10-08 Thread Marc Girondot via R-help
Dear members, Has someone have a solution to include a bquote() statement in a list to be used with do.call() ? Here is an exemple: scaleY <- 1 plot(x=1, y=1, ylab=bquote(.(format(scaleY), scientific=FALSE)^"-1")) Like that, it works. Now he same in a list: L <- list(x=1,

Re: [R] Least Median Square Regression

2016-10-08 Thread Enrico Schumann
On Sat, 08 Oct 2016, Bryan Mac writes: > Hi R-help, > > How do you perform least median square regression in R? Here is what I have > but received no output. > > LMSRegression <- function(df, indices){ > sample <- df[indices, ] > LMS_NAR_NIC_relation <-

Re: [R] Loop to check for large dataset

2016-10-08 Thread Adrian Dușa
It would help to have a minimal, reproducible example. Unless revealing the structure of your FD object, it is difficult to understand how a column having 61327 values would be "consistent over an 1 to 157 interval": is this interval cyclic until it reaches 61327 values? >From your example using

Re: [R] Loop to check for large dataset

2016-10-08 Thread ruipbarradas
Hello, I'm not at all sure if the following is what you need but instead of for (i in length(FD$WEEK)) try for (i in 1:length(FD$WEEK)) or even better for (i in seq_len(FD$WEEK)) And use Control[i, 1], not Control[, 1] Hope thi helps, Rui Barradas Citando Christoph Puschmann

[R] “log-rank test” and “Kaplan Meier actuarial plots (time to event curve)”

2016-10-08 Thread Steven Stoline
Dear All: I do need your help with the “log-rank test” and “Kaplan Meier actuarial plots (time to event curve)” with adding the confidence intervals bands for the average score for each time to the curve of each group. *Group variable:* 1 = group 1, 2 = group 2 *Time points:* time1, time2,

[R] Loop to check for large dataset

2016-10-08 Thread Christoph Puschmann
Hey all, I would like to know if anyone, can put in the right direction of the following problem: I am currently want to use it to check if a column with a length of 61327 is consistent over an 1 to 157 interval until the end of the column. In the case the interval is interrupted I want to

Re: [R] In SOM package all entities are predicted to the same class

2016-10-08 Thread Ranjana Girish
From: "Ranjana Girish" Date: Oct 7, 2016 3:39 PM Subject: Re:In SOM package all entities are predicted to the same class Cc: > Even after trying with different parameters of SOM still all entities are getting predicted to same class.. > > Note:

[R] In SOM package all entities are predicted to the same class

2016-10-08 Thread Ranjana Girish
From: "Ranjana Girish" Date: Oct 7, 2016 3:14 PM Subject: help:In SOM package all entities are predicted to the same class Cc: Hi All,,, Every-time when i run the below code it is predicting the same class for all the test cases.So i

Re: [R] date comparison doesn't match value

2016-10-08 Thread Jim Lemon
Hi Heather, I think the problem may be that you are trying to compare a date field and a character string. R helpfully tries to wrangle the two into comparable data types. While I don't know exactly what you have done, as R for: as.numeric(alldata$new.date.local) and look at the value you get.

Re: [R] Least Median Square Regression

2016-10-08 Thread ruipbarradas
Hello, Use package quantreg, function rq(). install.packages("quantreg") ?rq Hope this helps, Rui Barradas Citando Bryan Mac : Hi R-help, How do you perform least median square regression in R? Here is what I have but received no output. LMSRegression <-

[R] Least Median Square Regression

2016-10-08 Thread Bryan Mac
Hi R-help, How do you perform least median square regression in R? Here is what I have but received no output. LMSRegression <- function(df, indices){ sample <- df[indices, ] LMS_NAR_NIC_relation <- lm(sample$NAR~sample$NIC, data = sample, method = "lms") rsquared_lms_nar_nic <-

Re: [R] Cannot install package write.xls

2016-10-08 Thread Daniel Nordlund
On 10/7/2016 10:50 PM, T.Riedle wrote: Dear R users, I am trying to export my results to excel using write.xls or write.table but I cannot install the packages. Instead, I get the message Warning in install.packages : package 'write.table' is not available (for R version 3.3.1)

Re: [R] Cannot install package write.xls

2016-10-08 Thread Jeff Newmiller
I have never heard of a write.xls package. Try searching for it with Google... you might be misspelling it. I have never heard of a write.table package either. There is a write.table FUNCTION in base R with which you can create various text files that Excel can read. Enter ?write.table at