[R] Why the slope and intercept of 95% CI varies at each calculation when using package mcr?

2017-02-25 Thread vod vos
Hi Everybody, aa<- c(1,5,10,20,50,40,50,60,70,80,90,100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1000) bb<- c(8,16,30,24,39,54,40,68,72,62,122,80,181,259,275,380,320,434,479,587,626,648,738,766,793,851,871,957,1001,960) library(mcr) pbreg<- mcreg(aa,bb, method.reg =

Re: [R] Reading S-plus data in R

2017-02-25 Thread roslinazairimah zakaria
Hi William, Thank you so much for your reply. However, I still got error message: > data.dump(oldStyle=TRUE) Error: could not find function "data.dump" > data.restore("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd") Error: could not find function "data.restore" Thank you. On Sun, Feb 26, 2017

Re: [R] Repeat

2017-02-25 Thread David Winsemius
> On Feb 25, 2017, at 4:36 PM, Ashta wrote: > > Thank you so much David! > > But if all element of a group has '-' did not work. In this case year > 2006 an example > If all values of flag are '-' within year then I wan to set as N I don't see the difficulty (and your example did not provi

Re: [R] Repeat

2017-02-25 Thread Ashta
Thank you so much David! But if all element of a group has '-' did not work. In this case year 2006 an example If all values of flag are '-' within year then I wan to set as N dat=read.table(text = "Year month flag 2001 1 Z 2001 2 - 2001 4 X 2002 1 Z 2002 2 - 2003 1 - 2003 2 Z

Re: [R] Repeat

2017-02-25 Thread David Winsemius
> On Feb 25, 2017, at 10:45 AM, Ashta wrote: > > Thank you David. > is it not possible to sort it by year and flag so that we can make '-' > in the second row ? like this for that particular year. > > 2003 2 Z > 2003 1 - > I was a bit surprised by the results of htis since I had

Re: [R] unidentified option(s) in mean.model

2017-02-25 Thread Allan Tanaka
Let me know if anything On Saturday, 25 February 2017, 23:18, Allan Tanaka wrote: Hi See attached txt On Saturday, 18 February 2017, 20:47, Rui Barradas wrote: Helo, No attachment came through. Change the file extension from .R to .txt and resend, there aren't many types o

Re: [R] unidentified option(s) in mean.model

2017-02-25 Thread Allan Tanaka
Hi See attached txt On Saturday, 18 February 2017, 20:47, Rui Barradas wrote: Helo, No attachment came through. Change the file extension from .R to .txt and resend, there aren't many types of files r-help accepts. Rui Barradas Em 17-02-2017 17:20, Allan Tanaka escreveu: > So i trie

Re: [R] Repeat

2017-02-25 Thread Ashta
Thank you David. is it not possible to sort it by year and flag so that we can make '-' in the second row ? like this for that particular year. 2003 2 Z 2003 1 - On Sat, Feb 25, 2017 at 12:14 PM, David Winsemius wrote: > >> On Feb 25, 2017, at 8:09 AM, Ashta wrote: >> >> I ha

Re: [R] unidentified option(s) in mean.model

2017-02-25 Thread Rui Barradas
Hello, You're right, but the equal sign outside the function call wasn't my doing. I should have noticed that the OP had used spec = ugarchspec(...) and '<-' inside the function call to assign values to the function's arguments, but I heven't, so I just corrected the '<-'. Rui Barradas Em

Re: [R] Repeat

2017-02-25 Thread David Winsemius
> On Feb 25, 2017, at 8:09 AM, Ashta wrote: > > I have a data set and I want to repeat a column value based on other > column value, > > my data look like > > read.table(text = "Year month flag > 2001 1 Z > 2001 2 - > 2001 4 X > 2002 1 Z > 2002 2 - > 2003 1 - > 2003 2 Z > 2004 2

Re: [R] unidentified option(s) in mean.model

2017-02-25 Thread Jeff Newmiller
That was confusing. One equals sign is used to assign values (actual arguments) to function inputs (formal arguments). The assignment operator `<-` is used to assign values to variables in the current working environment. Due to popular demand, the single equals sign can ALSO be used for that

Re: [R] unidentified option(s) in mean.model

2017-02-25 Thread Rui Barradas
Hello, Your minimal reproducible example is not reproducible since we don't have acces to file "EURJPY.m1440.csv" and is far from minimal. Anyway, the best I can say is that you are using the attribution operator '<-' to set the values of a function's arguments when you should use '='. Try ins

Re: [R] Reading S-plus data in R

2017-02-25 Thread William Dunlap via R-help
The sdd file extension may mean that the file is in S+ 'data dump' format, made by S+'s data.dump function and readable in S+ by its data.restore function. foreign::data.restore can read some such files in R, but I think it may only read well those with using the pre-1991 format made in more recent

Re: [R] How to plot distribution of relative frequncy using ggplot2?

2017-02-25 Thread Bert Gunter
Is this homework? (We don't do homework here). Also, this looks pretty basic. Have you gone through any ggplot tutorials? -- the web and the Rstudio site have many. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opu

[R] How to plot distribution of relative frequncy using ggplot2?

2017-02-25 Thread vod vos
Hello everyone, How to plot distribution of relative frequncy using ggplot2 ? The example figure is in the attachment. If we have data: aa<- c(1,5,10,20,50,40,50,60,70,80,90,100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1000) bb<- c(8,16,30,24,39,54,40,68,72,62,122,

[R] Repeat

2017-02-25 Thread Ashta
I have a data set and I want to repeat a column value based on other column value, my data look like read.table(text = "Year month flag 2001 1 Z 2001 2 - 2001 4 X 2002 1 Z 2002 2 - 2003 1 - 2003 2 Z 2004 2 Z 2005 3 Z 2005 2 - 2005 3 -", header = TRUE) Within year If flag

[R] How to prune a tree using a validation set

2017-02-25 Thread Alfredo
I'd like to use a different data ( validation) set for pruning my classification tree. Unfortunately there aren't arguments to get this in prune.rpart(). Any suggestions? Thanks! Alfredo [[alternative HTML version deleted]] __ R-help@r-proje