Re: [R] Help needed please

2012-02-25 Thread R. Michael Weylandt
Look at ?optim and example(optim) Michael On Sat, Feb 25, 2012 at 11:47 AM, Jaymin Shah wrote: > I was wondering how to make a function which minimises  a vector (a,b,c,d). > > I have an equation ( for simplicity) say its 5 -(3a+4b+6c+8d) and i want to > make this equation as small as possible.

Re: [R] Help needed please

2012-02-25 Thread Jaymin Shah
I was wondering how to make a function which minimises a vector (a,b,c,d). I have an equation ( for simplicity) say its 5 -(3a+4b+6c+8d) and i want to make this equation as small as possible. Thus need to find the values for a b c and d for which this happens. I know there is a function in r

Re: [R] Help needed please

2012-02-10 Thread ilai
Your script is rather inefficient with spurious cbind calls. Any particular reason not to use ?ar directly ? Call: ar.yw.default(x = simtimeseries, order.max = 4) Coefficients: 1234 1.9440 -1.9529 0.8450 -0.2154 Order selected 4 sigma^2 estimated as 15.29 To

[R] Help needed please

2012-02-10 Thread Jaymin Shah
I have coded a time series from simulated data: simtimeseries <- arima.sim(n=1024,list(order=c(4,0,0),ar=c(2.7607, -3.8106, 2.6535, -0.9258),sd=sqrt(1))) #show roots are outside unit circle plot.ts(simtimeseries, xlab="", ylab="", main="Time Series of Simulated Data") # Yule --

[R] help needed please

2008-05-13 Thread TEBBI FATIMA
HI I have a data to test its normality and simulate after how with R. thanks in advance __ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/ma