I've done some research and I am stuck in finding the solution. I have a time series data on insurance claims and disability dates, a very basic data frame, let's call it data:
See list of dates Claims
I've run the following code (after loading the XTS library) to identify and sort the dates in the correct order:
data = read.csv('Claims1.csv')
data$DISABILITYDATE <- as.Date(data$DISABILITYDATE, "%m/%d/%Y")
data
str(data)
as.Date(data[,1])
xts(x=data[,-1], order.by = data[,1])
However I'm need to count/break out the number of claims per month so I can begin to perform and ARIMA(auto.arima) forecast.
Ideally I would like something like this data frame Ideal Data Frame so I can perform some AR/MA/ARMA/ARIMA styled forecasting on yearly/12 month projections