| ctChisqTest | R Documentation | 
Chi Square test wrapper for ctStanFit objects.
ctChisqTest(fit1, fit2)
| fit1 | One of the fits to be compared (better fit is assumed as base for comparison) | 
| fit2 | Second fit to be compared | 
Numeric probability
    df <- data.frame(id=1, time=1:length(sunspot.year), Y1=sunspot.year)
    
    m1 <- ctModel(type='dt', LAMBDA=diag(1),MANIFESTVAR=0)
    m2 <- ctModel(type='dt', LAMBDA=diag(1),MANIFESTVAR=0,DRIFT = .9)
    
    f1 <- ctStanFit(df,m1,cores=1)
    f2 <- ctStanFit(df,m2,cores=1)
    
    ctChisqTest(f1,f2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.