bstspost's People
Forkers
tatabox42 richgillin satpreetsingh robtheoceanographer emiliogg ecardenes paulhendricks jeperez seekshreyas tpopenfoose fototo sco-lo-digital vlbray smc-dta au500 semanticbeeng nanaakwasiabayieboateng themisz jtouley iev1977 tozammel leo-lee15 hal2001 robindang0573 owenanalytics mcui123 convexsetgithub vermashivam679 ahams yuaningith vishalbelsare geauxdojang socrateslab surfcao sandy4321bstspost's Issues
It seems as.Date(time(AirPassengers)) Doesn't Work for Me
I got the error below using the code in the blog post.
The code below, however, creates date object by leveraging zoo package.
d1 <- data.frame(c(10^as.numeric(fitted(arima)), # fitted and predicted
10^as.numeric(predict(arima, n.ahead = 12)$pred)),
as.numeric(AirPassengers), #actual values
as.Date(as.yearmon(time(AirPassengers)))
Need Help
I am using a "10 years" monthly time-series data to run this code. But getting "Error in data.frame(c(10^as.numeric(-colMeans(bsts.model$one.step.prediction.errors[-(1:burn), :
arguments imply differing number of rows: 144, 120"
d2 <- data.frame(
# fitted values and predictions
c(10^as.numeric(-colMeans(bsts.model$one.step.prediction.errors[-(1:burn),])+y),
10^as.numeric(p$mean)),
# actual data and dates
as.numeric(AirPassengers),
as.Date(time(AirPassengers)))
names(d2) <- c("Fitted", "Actual", "Date")
Please help me to sort out this error.
Great post! Couple questions
looks like you are creating a variable called arima that is the same name as the function of arima. This is leading to an error getting thrown - object of type 'closure' is not subsettable
Not too big a problem, rename it arima.plane
or something and that error goes away.
Next error that pops up for me is Error in data.frame(c(10^as.numeric(fitted(arima.plane)), 10^as.numeric(predict(arima.plane, : arguments imply differing number of rows: 156, 144
Maybe you will have time to update code at some point. Thanks!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.