Joint LDA and Time SeriesFunctions for top-level LDATS modeling |
|
---|---|
Run a full set of Latent Dirichlet Allocations and Time Series models |
|
Package the output of LDA_TS |
|
Print the selected LDA and TS models of LDA_TS object |
|
Plot the key results from a full LDATS analysis |
|
Create the list of colors for the LDATS summary plot |
|
Latent Dirichlet AllocationFunctions to extend exisiting LDA functionality |
|
Run a set of Latent Dirichlet Allocation models |
|
Package the output from LDA_set |
|
Calculate the log likelihood of a VEM LDA model fit |
|
Select the best LDA model(s) for use in time series |
|
Create the model-running-message for an LDA |
|
Plot a set of LDATS LDA models |
|
|
Plot the results of an LDATS LDA model |
Prepare the colors to be used in the LDA plots |
|
Time SeriesFunctions to execute and evaluate the overall TS model with changepoints and regression components |
|
Conduct a single multinomial Bayesian Time Series analysis |
|
Summarize the Time Series model |
|
Determine the log likelihood of a Time Series model |
|
Print a Time Series model fit |
|
Plot an LDATS TS model |
|
|
Plot the diagnostics of the parameters fit in a TS model |
Produce the trace plot panel for the TS diagnostic plot of a parameter |
|
Produce the posterior distribution ECDF panel for the TS diagnostic plot of a parameter |
|
Produce the posterior distribution histogram panel for the TS diagnostic plot of a parameter |
|
Produce the autocorrelation panel for the TS diagnostic plot of a parameter |
|
Create the list of colors for the TS summary plot |
|
Create the summary plot for a TS fit to an LDA model |
|
Add change point location lines to the time series plot |
|
Prepare the colors to be used in the change point histogram |
|
Prepare the colors to be used in the gamma time series |
|
Summarize the regressor (eta) distributions |
|
Summarize the rho distributions |
|
Estimate the distribution of regressors, unconditional on the change point locations |
|
Use ptMCMC to estimate the distribution of change point locations |
|
Initialize and tick through the progress bar |
|
Multinomial Time Series modelingFunctions to fit the multinomial time series models making up an overall TS model |
|
Fit a multinomial change point Time Series model |
|
Log likelihood of a multinomial TS model |
|
Fit a multinomial Time Series model chunk |
|
Prepare the time chunk table for a multinomial change point Time Series model |
|
Package the output of the chunk-level multinomial models into a multinom_TS_fit list |
|
Verify the change points of a multinomial time series model |
|
Parallel tempering Markov Chain Monte CarloFunctions to execute ptMCMC optimization |
|
Prepare the inputs for the ptMCMC algorithm estimation of change points |
|
Initialize and update the chain ids throughout the ptMCMC algorithm |
|
Pre-calculate the change point proposal distribution for the ptMCMC algorithm |
|
Prepare and update the data structures to save the ptMCMC output |
|
Initialize and update the change point matrix used in the ptMCMC algorithm |
|
Prepare the ptMCMC temperature sequence |
|
Calculate ptMCMC summary diagnostics |
|
Count trips of the ptMCMC particles |
|
Conduct a set of among-chain swaps for the ptMCMC algorithm |
|
Conduct a within-chain step of the ptMCMC algorithm |
|
Fit the chunk-level models to a time series, given a set of proposed change points within the ptMCMC algorithm |
|
Time Series on LDA outputFunctions to facilitate connection running multiple TS models on LDA output |
|
Conduct a set of Time Series analyses on a set of LDA models |
|
Package the output of TS_on_LDA |
|
Print a set of Time Series models fit to LDAs |
|
Expand the TS models across the factorial combination of LDA models, formulas, and number of change points |
|
Prepare the model-specific data to be used in the TS analysis of LDA output |
|
Select the best Time Series model |
|
Print the message to the console about which combination of the Time Series and LDA models is being run |
|
SimulationFunctions for simulating input data |
|
Simulate LDA data from an LDA structure given parameters |
|
Simulate TS data from a TS model structure given parameters |
|
Simulate LDA_TS data from LDA and TS model structures and parameters |
|
Control optionsFunctions to set function options defined through control lists |
|
Create the controls list for the LDATS model |
|
Create control list for set of LDA models |
|
Create the controls list for the Time Series model |
|
Set the control inputs to include the seed |
|
Input checkingFunctions to tidy code by condensing input object verification |
|
Check that a set of change point locations is proper |
|
Check that a control list is proper |
|
Check that the document covariate table is proper |
|
Check that document term table is proper |
|
Check that a formula is proper |
|
Check that formulas vector is proper and append the response variable |
|
Check that LDA model input is proper |
|
Check that nchangepoints vector is proper |
|
Check that nseeds value or seeds vector is proper |
|
Check that the time vector is proper |
|
Check that topics vector is proper |
|
Check that weights vector is proper |
|
UtilitiesA variety of helpful little functions |
|
Calculate AICc |
|
Calculate document weights for a corpus |
|
Replace if TRUE |
|
Calculate the log-sum-exponential (LSE) of a vector |
|
Determine the mode of a distribution |
|
Logical control on whether or not to memoise |
|
Optionally generate a message based on a logical input |
|
Create a properly symmetric variance covariance matrix |
|
Normalize a vector |
|
Calculate the softmax of a vector or matrix of values |
|
Data and PackageDatasets provided and the package |
|
Jornada rodent data |
|
Portal rodent data |
|
Package to conduct two-stage analyses combining Latent Dirichlet Allocation with Bayesian Time Series models |