Description Usage Arguments Value References Examples
Fit a multinomial regression model (via
multinom, Ripley 1996, Venables and Ripley 2002)
to a defined chunk of time (a.k.a. segment)
[chunk$start, chunk$end] within a time series.
1 2 |
data |
Class |
formula |
Formula as a |
chunk |
Length-2 vector of times: [1] |
timename |
|
weights |
Optional class |
control |
A |
Fitted model object for the chunk, of classes multinom and
nnet.
Ripley, B. D. 1996. Pattern Recognition and Neural Networks. Cambridge.
Venables, W. N. and B. D. Ripley. 2002. Modern Applied Statistics with S. Fourth edition. Springer.
1 2 3 4 5 6 7 8 9 | data(rodents)
dtt <- rodents$document_term_table
lda <- LDA_set(dtt, 2, 1, list(quiet = TRUE))
dct <- rodents$document_covariate_table
dct$gamma <- lda[[1]]@gamma
weights <- document_weights(dtt)
chunk <- c(start = 0, end = 100)
mtsc <- multinom_TS_chunk(dct, formula = gamma ~ 1, chunk = chunk,
timename = "newmoon", weights = weights)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.