search for: x_ema

Displaying 1 result from an estimated 1 matches for "x_ema".

Did you mean: __vma
2009 Oct 16
4
Cannot calculate mean() for double vector
I've been using R recently to analyze some data, but I'm having a problem using the mean() function. I imported the original data set as a vector of integers, x and then calculated a exponential moving average of the data, x_ema. This part worked fine. Then, I tried to find the mean squared error between the original series and the moving average, using mse = mean((x - x_ema)^2). This gives N/A as a result, which seems to be the result of the mean function. When I run mean() on x_ema, which is of data type double, it alwa...