Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 29149

Use this tag for any *on-topic* question that (a) involves `R` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `R`.

0 votes
2 answers
9k views

arguments of length zero error with very similar code while forecasting

When I forecast from a linear Regression model in R using the following code, I get an arguments of length zero error , which I understand as a null pointer: library(forecast) Mwh = c(16.3,16.8,15.5,18.2,15.2,17.5,19.8,19.0,17.5,16.0,19.6,18.0 …
Statos's user avatar
  • 303
0 votes

arguments of length zero error with very similar code while forecasting

I took a look at the results of the debugger of the forecast()-function digesting "t" and "d" from the above discussion. Moreover, I asked Rob Hyndman as the author of forecast() for help. The problem …
Statos's user avatar
  • 303
4 votes
2 answers
3k views

df missing in R output of chi-square- test?

I performed a chi-square goodness-of-fit test with R, which uses simulation of the p-value: x<-c(0.16*260,0.48*260,0.31*260,0.05*260,0) chisq.test(x, p=c(0.25,0.25,0.3,0.11,0.09),simulate.p.value = TRUE … The documentation at http://stat.ethz.ch/R-manual/R-patched/library/stats/html/chisq.test.html does not mention the df-related output. Any similar experience with R packages? …
Statos's user avatar
  • 303
0 votes

Forecasting daily visits using ARIMA with external regressors

An answer without testing/p-values, but with roughly estimating confidence intervals: Adding twice the s.e. (Standard error) on your coefficients should give you approximately 95%-confidence intervals …
Statos's user avatar
  • 303
1 vote
1 answer
258 views

Starting-point of time-series influences regression?

I've used tslm() under the R-package fpp to analyse two time series, which seem similar: library(fpp) a<-ts(c(1,10,2,3,4,5,6,7,8,9,10,11,12,2,21,4,6,8,10,11,12,13,14,18), start = c(1959, 1), frequency …
Statos's user avatar
  • 303
1 vote
0 answers
111 views

Bootstrapping versus formula-based forecast intervals - wrong approach?

I've implemented a comparison between the performance of 80%-forecast intervals is in the forecast package - see 1st part of the code below providing a number of hits This number states, how many time …
Statos's user avatar
  • 303