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.
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
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
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
--
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
5 matches
Mail list logo