Displaying 4 results from an estimated 4 matches for "fcast".
Did you mean:
fast
2009 Aug 07
3
How do I plot a line followed by two forecast points?
...e("1992-12-31"),by="month");
# Sample y value
> yValues<-NULL;
> yValues[1:length(xValues)]=seq(0.1,length=length(xValues))
# Plot the series as a line
> plot(xValues,yValues,type="l");
# Sample forecast dates that start from xValue's data point
> fcastDates=seq.Date(from=as.Date(xValues[length(xValues)]),length=12,by="month");
> fcastDates
[1] "1992-12-31" "1993-01-31" "1993-03-03" "1993-03-31" "1993-05-01"
"1993-05-31"
[7] "1993-07-01" "1993-07-31" &qu...
2005 Sep 17
4
xyplot and abline
Dear All,
I wonderif there is a simple way to draw a regression line in the xyplot:
more specifically, let:
age <- c(20:30, 31:40 )
age.cut <- cut(age, breaks = 2 )
y<- rnorm(20)
x <- rnorm(20,4,1)
xyplot(y ~ x| age.cut, xlab="x", ylab="y")
How to draw (in the plot given by xyplot) the two regression lines (y ~ x) corresponding to the two category
2012 Apr 20
1
Package "demography" - calculating percentiles of survival probabilities distribution
Hi,
I am using the package "demography" from Rob Hyndman for the
Lee-Carter-Model. It is an amazing powerful tool but I am struggling with
one issue:
I want to compute different percentiles of the survival probability
distribution derived from the Lee-Carter-Forecast (e.g. the 50%tile,
60%tile, 75%tile and 99%tile) for each of the next 10 years. Is there any
possibility to retrieve
2010 Oct 07
1
Forecasting with R/Need Help. Steps shown below with the imaginary data
...des\SAS\gross up\Data\Forc1.xpt';
data xportout.Forc1;
set Data1;
run;
setwd("H:/Care Transition Evaluation/CT-Codes/SAS/gross up/Data")
getwd()
Forc<-read.xport("Forc1.xpt")
attach(Forc)
names(Forc)
Forc
1. Used the auto.arima codes:
fit <- auto.arima(Forc)
fcast <-forecast(fit)
plot(fcast)
summary(fcast)
But the following error comes on using the first line of code:
fit <- auto.arima(Forc)
-----------------------------------------------------------------------
Error in model.frame.default(formula = x ~ 1, drop.unused.levels = TRUE) :
invalid type...