Comments (3)
If I run the following then it works:
data=ts(data=rnorm(100),start=c(2000,1),frequency=12)
cpt.mean(data)
Output:
class 'cpt' : Changepoint Object
~~ : S4 class containing 12 slots with names
cpttype date version data.set method test.stat pen.type pen.value minseglen cpts ncpts.max param.estCreated on : Wed Aug 11 17:32:15 2021
summary(.) :
Created Using changepoint version 2.2.2
Changepoint type : Change in mean
Method of analysis : AMOC
Test Statistic : Normal
Type of penalty : MBIC with value, 13.81551
Minimum Segment Length : 1
Maximum no. of cpts : 1
Changepoint Locations :
Can you provide a minimal working example such as the above?
from changepoint.
Ach, I constructed my ts
object using a single-columned tibble rather than pull()
ing to a vector. This was giving the object something to return with dim()
when it shouldn't, and tripping the error. Switching select
to pull
resolves.
Sorry to bother you!
from changepoint.
No problem! I'm always open to hearing that my code my be incorrect but glad when it turns out I don't have to do anything :-)
Please do come back to me if you find anything else or have any comments for improvements. One thing I do need to do is return a ts object in the data slot for the output. Currently, we return a vector which means that the plotting doesn't use the time attributes of the input object. Clearly not desirable!
from changepoint.
Related Issues (20)
- binseg returns incorrect segment means HOT 5
- NegBin distribution / R-GSOC'21 project? HOT 3
- cpt.meanvar return cost value? HOT 3
- `plot` of Changepoint object is not working HOT 3
- Segment check or residual check? HOT 4
- Q for cpt.meanvar with method=SegNeigh and sumstat = Poisson or Exp HOT 1
- logLik cpt.meanvar output when method="SegNeigh"
- availability of changeppoint.influence library HOT 2
- cpt.meanvar returns an extra changepoint location when locations are called directly HOT 2
- Should cpt.var allow minseglen = 1? HOT 1
- Can cpt.reg class still be used? HOT 1
- SegNeigh/SNIP GSOC project? HOT 2
- BinSeg returns zeros in cpts.full matrix
- cpt.mean(method="BinSeg") slower than expected/optimal for large number of data and changes HOT 1
- diagnostic = TRUE does not work HOT 1
- Checking for 1D objects via `is.null(dim(x))` breaks for 1D-arrays HOT 3
- logLik() should return an object of class "logLik" HOT 5
- possible bug in logLik() computation HOT 2
- figure out reasonable calculation for fitted.nhpp() HOT 1
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.
from changepoint.