Displaying 20 results from an estimated 200 matches similar to: "Problem with ploting fitted values"
2007 Nov 16
1
monthplot () - axis change color
Hi,
When I run this code a part of my x-axis and y-axis changes color. Can
somebody tell me what is wrong? Also, is there a way to control the color of
the average lines?
monthplot(AirPassengers+500, ylim=c(min(AirPassengers),
max(AirPassengers+500)), ylab="")
par(new=T)
monthplot(AirPassengers, col="blue", ylim=c(min(AirPassengers),
max(AirPassengers+500)),
2012 Jan 21
2
How to identify data structure?
data(AirPassengers) brings AirPassengers into the workspace. How can I idenfity what the structure of AirPassengers is? Is it a data.frame, a table etc. etc.
[[alternative HTML version deleted]]
2011 Jul 28
3
construct a data set
Hi,
i want to construct a data set similar to "AirPassengers".
Its attributes are following.
> attributes(AirPassengers)
$tsp
[1] 1949.000 1960.917 12.000
$class
[1] "ts"
How Can I construct a data set similar to it having same class and attributes.
Thanks
--
Amar Kumar Nandan
?:nandan.amar at gmail.com
http://aknandan.co.nr
2010 Nov 22
2
Help: Standard errors arima
Hello,
I'm an R newbie. I've tried to search, but my search skills don't seem
up to finding what I need. (Maybe I don't know the correct terms?)
I need the standard errors and not the confidence intervals from an
ARIMA fit.
I can get fits:
> coef(test)
ar1 ma1
intercept time(TempVector) - 1900
2004 Jul 18
2
stl,package=stats
Greetings:
I'm using the time series decomposition routine "stl" from the package "stats".
But how do I get the results into a vector to work with them?
example:
data(AirPassengers)
m<-stl(AirPassengers,"per")
print(m)
This lists the output but can't figure out how to extract the individual series like seasonal, trend, irregular.
Thanks,
Bob
2012 Jan 29
2
Data Structure to Code
Given:
data(AirPassengers)
I get a ts data structure AirPassengers in the workspace.
How can I generate the code that can create that structure? That is, given an example of a data structure, is there a way to generate the code that can greate that structure?
Alternatively, is there a reference that provides a list of dta structures together with a full list of theor respective attributes?
2011 Mar 08
3
This is supposed to predict a time series?!
Hello,
I just ran the predict.StructTS function using the AirPassengers data
and got a ridiculous result. Here's what I ended up with:
http://24.210.155.111/PredictWhat!.pdf
Who wrote this? Am I seriously supposed to think this function would
accurately predict a time series?
-AnalogKid
2015 Jun 12
2
Serie temporal interrumpida del tipo AirPassengers
Hola usuarios,
Necesito detectar si existe o no un cambio de tendencia y si dicho cambio es significativo, para una serie temporal del tipo AirPassengers, en la que
a partir de un determinado momento se ha hecho una campaña (supongamos que una promoción de vuelos).
Para ello he pensado varios métodos:
Usar la descomposición espectral de la muestra [decompose(AirPassengers)] y luego una Regresión
2012 Feb 20
3
Confused: Inconsistent result?
This is copy & paste from my session:
> xyz<-as.vector(c(ls(),as.matrix(lapply(ls(),class))))
> dim(xyz)<-c(length(xyz)/2,2)
>
> allobj<-function(){
+ xyz<-as.vector(c(ls(),as.matrix(lapply(ls(),class))));
+ dim(xyz)<-c(length(xyz)/2,2);
+ return(xyz)
+ }
> xyz
[,1] [,2]
[1,] "a" "character"
[2,]
2010 Mar 19
1
Arima forecasting
Hello everyone,
I'm doing some benchmark comparing Arima [1] and SVR on time series data.
I'm using an out-of-sample one-step-ahead prediction from Arima using
the "fitted" method [2].
Do someone know how to have a two-steps-ahead forecast timeseries from Arima?
Thanks,
Matteo Bertini
[1] http://robjhyndman.com/software/forecast
[2] AirPassengers example on page 5
2011 Jun 15
1
Query regarding auto arima
I am using AUTO ARIMA for forecasting. But it is not detecting 'seasonality
term' of its own for any data.
Is there any other method by which we can detect seasonality and its
frequency for any data?
Is there any method through which seasonality and its frequency can be
automatically detected from ACF plot?
--
Siddharth Arun,
4th Year Undergraduate student
Industrial Engineering and
2010 May 12
2
How to extract sum of particular months in a monthly data series
Dear Users,
I have a monthly data for a number of years(1960-2007) for a number of
stations and i wish to extract sesonal time-series for the months of
March-May and October-November for very station. I have read this data with
read.table in R with stations as columns and time (months) as rows. My
attempt to aggregate with the zoo package using the function as.yearqtr
failed since this sums
2007 Dec 19
0
leaps
Thank you very much for the example. I think interactively I could get
something.
But my obstacle is to write an R script that processes my set of data
automatically.
My difficulty is to extract the information that appears on the screen, when
R is operated interactively, from a scripts.
Let me go over some steps to make sure I am doing things right.
Assume my data have been read into the matrix
2017 Apr 30
1
Byte compilation with window<- in R3.4.0
Hi,
I am running into a problem when I use the window<- replacement function in R
3.4.0. It will lead to an error when it is called inside a loop, probably
the result of the byte compiler now enabled by default.
When I turn it off, it works again, as in older versions of R. I tested on Win,
Linux and Mac, and the problem occurs everywhere.
Here is a reproducible example:
z <-
2009 Sep 09
1
Forecast - How to create variables with summary() results parameters
Hi,
I would like to create variables in R containing parameters of
summary(*Forecast
Results*).
Using the following code:
library(forecast)
data <- AirPassengers
xets <- ets(data, model="ZZZ", damped=NULL)
xfor <- forecast(xets,h=12, level=c(80,95))
summary(xfor)
the output is:
Forecast method: ETS(M,A,M)
Model Information:
ETS(M,A,M)
Call:
ets(y = data, model =
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives
demonstrations on what can be done using R? I downloadedR Langauage
definition and An introduction to R but haven't found them overly useful.
I'd really like to be able to follow some tutorials using a dataset or many
datasets. The datasets I have available on R are
Data sets in package 'datasets':
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Thanks John.
?boxcox says:
*************************
Arguments
object
a formula or fitted model object. Currently only lm and aov objects are handled.
*************************
I read that as saying that
boxcox(lm(z+1 ~ 1),...)
should run without error. But it didn't. And perhaps here's why:
BoxCoxLambda <- function(z){
b <- MASS:::boxcox.lm(lm(z+1 ~ 1), lambda = seq(-5, 5,
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Hi Bert,
On 2023-07-08 3:42 p.m., Bert Gunter wrote:
> Caution: This email may have originated from outside the organization. Please exercise additional caution with any links and attachments.
>
>
> Thanks John.
>
> ?boxcox says:
>
> *************************
> Arguments
>
> object
>
> a formula or fitted model object. Currently only lm and aov objects
2004 Aug 10
0
Check failed after compilation (PR#7159)
Full_Name: Madeleine Yeh
Version: 1.9.1
OS: AIX 5.2
Submission from: (NULL) (151.121.225.1)
After compiling R-1.9.1 on AIX 5.2 using the IBM cc compiler, I ran the
checks. One of them failed. Here is the output from running the check solo.
root@svweb:/fsapps/test/build/R/1.9.1/R-1.9.1/tests/Examples:
># ../../bin/R --vanilla < stats-Ex.R
R : Copyright 2004, The R
2005 Mar 11
1
Ploting a function of two arguments
Hi,
I've written a function:
myfun <- function(x, y) {
// blah blah
}
and I want to graph it. My plan is to use persp(), and my question is:
how do I create the array of values? One possibility is:
x <- seq(0, 10, by=.1)
y <- seq(0, 10, by=.1)
inputs <- <somehow create an array of x,y pairs>
outputs <- apply(A, c(1,2), myfun)
The "inputs" array would