Displaying 5 results from an estimated 5 matches for "ehxpieterse".
2009 Aug 03
3
Help with data type
Hi there,
Using a quantmod function, I calculate the daily change between two points
in a time series. However, I don't think I am using the data correctly.
Code:
getSymbols("^GSPC", src="yahoo")
CloseData <- Cl(GSPC)
Delta <- diff(CloseData, lag=1)
for (i in 3:length(Delta)) {
if (Delta[i]>Delta[i-1]) sum <- sum + Delta
}
I can't seem to use the Delta
2009 Jun 09
1
Using ADF.Test
Hi,
I am quite new to R and would appreciate some guidance, if possible.
I have imported a csv file: spread <- read.csv("Spread.csv")
I get the following error when I try to run adf.test:
> adf.test(spread,alternative = c("stationary", "explosive"),0)
Error in embed(y, k) : 'x' is not a vector or matrix
Why is this?
--
View this message in context:
2009 Feb 05
2
Non-linear optimisation
Hi there,
I have a piece of Matlab code I use to optimise a trding strategy. If there
are any Matlab/R specialists out there, I would appreciate your help in
doing the exact same optimisation in R.
I suspect I would use nlm() in R but am not sure where to define my
constraints.
I have attached my Matlab code below for reference.
Many thanks.
Constraints
function [c,ceq]=TriskellConstraints(X)
2009 Jul 31
0
Trouble with R proxy
Hi there,
I am having some trouble getting download.file to work. I have been
searching for the answer but my raw coding ability is not at the same level
as the solutions I am getting.
I have checked my environment and the proxy settings are in line with what I
expected:
> Sys.getenv("http_proxy")
http_proxy
"http://proxy-lon2.macbank"
>
2009 Aug 06
0
Seasonal analysis
Hi,
Are there any R packages around which would break down a time series into a
MxN table for analysis purposes?
For example, show the total sales per month per calendar year.
Jan Feb..... Total
2008
2009
Total
Thanks,
Eduard
--
View this message in context: http://www.nabble.com/Seasonal-analysis-tp24844839p24844839.html
Sent from the R help mailing list archive at Nabble.com.