Package: CPTtools 0.9-1

CPTtools: Tools for Creating Conditional Probability Tables

Provides support parameterized tables for Bayesian networks, particularly the IRT-like DiBello tables. Also, provides some tools for visualing the networks.

Authors:Russell Almond

CPTtools_0.9-1.tar.gz
CPTtools_0.9-1.zip(r-4.7)CPTtools_0.9-1.zip(r-4.6)CPTtools_0.9-1.zip(r-4.5)
CPTtools_0.9-1.tgz(r-4.6-any)CPTtools_0.9-1.tgz(r-4.5-any)
CPTtools_0.9-1.tar.gz(r-4.7-any)CPTtools_0.9-1.tar.gz(r-4.6-any)
CPTtools_0.9-1.tgz(r-4.6-emscripten)
|manual.html
DESCRIPTION
card.svg |card.png
CPTtools/json (API)

# Install 'CPTtools' in R:
install.packages('CPTtools', repos = c('https://ralmond.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ralmond/cpttools/issues

Datasets:

On CRAN:

Conda:

bayesian-networkstatistics

5.11 score 1 stars 4 packages 24 scripts 113 exports 23 dependencies

Last updated from:f571c55363. Checks:7 NOTE, 1 ERROR, 1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE175
source / vignettesERROR371
linux-release-x86_64NOTE160
macos-release-arm64NOTE98
macos-oldrel-arm64NOTE109
windows-develNOTE101
windows-releaseNOTE99
windows-oldrelNOTE118
wasm-releaseOK133

Exports:accuracyareaProbsas.CPAas.CPFassoc2barchart.CPFbetacibuild2FactorTabbuildFactorTabbuildMarginTabbuildParentListbuildRegressionsbuildRegressionTablescabiplotcalcDDFramecalcDDTablecalcDNFramecalcDNllikecalcDNTablecalcDPCFramecalcDPCTablecalcDSFramecalcDSllikecalcDSTablecalcNoisyAndFramecalcNoisyAndTablecalcNoisyOrFramecalcNoisyOrTablecatTableciTestcolorspreadcompareBarscompareBars2CompensatoryConjunctivecptChi2cptG2cptKLdataTabledefaultAlphasdefaultBetasDisjunctiveEAPBaleffectiveThetaseThetaFrameewoe.CPFexpectedexpected.CPAexpected.CPFexpected.matrixexpTablefactorPartfcKappag2testgetOffsetRulesgetTableParentsgetTableStatesgkGammagkLambdagradedResponseis.CPAis.CPFisDecreasingisIncreasingisMonotonicisNondecreasingisNonincreasingisOffsetRulelocalDepTestmapDPCmarginTabmcSearchmosaic2mutualInformationnormalizenormalize.arraynormalize.CPAnormalize.CPFnormalize.data.framenormalize.defaultnormalize.matrixnormalizeTablenormalLinknumericPartOCPOCP.CPFOCP2OCP2.CPFOffsetConjunctiveOffsetDisjunctiveparseProbVecpartialCreditplotsimplexproflevelcipvecTablepvecToCutpointspvecToMidpointsrCPFreadHistoryrescaleTableresidsresids.arrayresids.CPFrpCPFscaleMatrixscaleTablesetOffsetRulessimplex_vertex_projectionstackedBarplotstackedBarsstructMatrixwoeBalwoeHist

Dependencies:clicpp11dplyreinsumgenericsgluelifecyclemagrittrmathjaxrpillarpkgconfigpurrrR6Rcpprlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Measues of Agreement
Assessment Design | Form Design | Simulation Experiment | Building the Confusion Matrix | The expected Confusion Matrix | Measuring agreement. | Unweighted Measures of Agreement | Raw Agreement | Goodman-Kruskal Lambda | Fleis-Cohen Kappa | Weighted versions | Exercise

Last update: 2025-04-24
Started: 2024-12-24

Parameter Estimation
Compensatory Model | True Model | Data Generation | Prior Model | Model fitting | Parameter Recovery | CPT Recovery

Last update: 2024-12-24
Started: 2024-12-24

Reference Distributions
Model setup | Reliability Model | Evidence Model | Simulation

Last update: 2024-12-24
Started: 2024-12-24

Building Bayesian networks using regression

Last update: 2023-07-18
Started: 2023-04-11

Conditional Probability Frames and Arrays
Conditional Probabilities over Discrete variables. | CPF | Graphics | CPA | Accessing data and metadata | Hyperdirichlet distribution | Scaling and Normalization | Generating Contingency Tables | Acknowledgements

Last update: 2023-07-18
Started: 2023-04-11

Graphing Discrete Bayesian Networks
u---title: "Graphing Discrete Bayesian Networks"output: rmarkdown::html_vignettevignette: >%\VignetteIndexEntry | Graphical utilities | Utility functions | Graphing Conditional Probability Tables | Results Graphs | WOE | Observable Characterisitic Plots | Tables

Last update: 2023-07-18
Started: 2023-04-11

Tracking Scores Over Time
Data Cleaning | First differences | Plots versus timestamps. Hard to see what is going on. | Working with discrete time. | Remaining Issues:

Last update: 2023-07-18
Started: 2023-04-11

Discrete Partial Credit Models
DiBello Framework | Effective Thetas | Combination Functions | Compensatory | Conjunctive, Disjunctive | OffsetConjunctive, OffsetDisjunctive | Inhibitor | Link Functions | 2PL | Graded Response | Generalized Parial Credit | Multiple Combination Rules | Normal Offset | CPT construction Functions | DPC | Earlier Graded Response Functions | Other Models | Peanut Framework | References | Works Cited | List of Symbols | List of functions

Last update: 2023-04-11
Started: 2021-05-23

Statistical Summaries of Conditional Probability Tables

Last update: 2023-04-11
Started: 2023-04-11

Readme and manuals

Help Manual

Help pageTopics
Tools for Creating Conditional Probability TablesCPTtools-package CPTtools
Data from ACED field trialACED ACED.items ACED.posttest ACED.prePost ACED.pretest ACED.QEM ACED.Qmatrix ACED.scores ACED.skillNames ACED.splitHalves ACED.taskNames
Translates between normal and categorical probabilitiesareaProbs pvecToCutpoints pvecToMidpoints
This function produces a plot of a conditional probability frame.barchart.CPF
Credibility intervals for a proportion based on beta distributionbetaci
Builds probability tables from Scored Bayes net output.build2FactorTab buildFactorTab buildMarginTab marginTab
Builds a list of parents of nodes in a graphbuildParentList
Creates a series of regressions from a covariance matrixbuildRegressions
Builds conditional probability tables from regressionsbuildRegressionTables
Create a correspondence analysis biplot of a CPFcabiplot
Calculates DiBello-Dirichlet model probability and parameter tablescalcDDFrame calcDDTable
Creates the probability table for DiBello-Normal distributioncalcDNFrame calcDNTable
Creates the probability table for the discrete partial credit modelcalcDPCFrame calcDPCTable
Calculates the log-likelihood for data from a DiBello-Samejima (Normal) distributioncalcDNllike calcDSllike
Creates the probability table for DiBello-Samejima distributioncalcDSFrame calcDSTable
Calculate the conditional probability table for a Noisy-And or Noisy-Min distributioncalcNoisyAndFrame calcNoisyAndTable
Calculate the conditional probability table for a Noisy-Or distributioncalcNoisyOrFrame calcNoisyOrTable
Produces an ordered palate of colours with the same hue.colorspread
Produces comparison stacked bar charts for two sets of groupscompareBars compareBars2
DiBello-Samejima combination functionCompensatory Conjunctive Disjunctive
Representation of a conditional probability table as an array.as.CPA as.matrix.CPA CPA is.CPA
Representation of a conditional probability table as a data frame.as.CPF as.matrix.CPF CPF is.CPF
Compare and observed to an expected conditional probability table.cptChi2 cptG2 cptKL
Constructs a table of counts from a set of discrete observations.dataTable
Generates default values for Alpha and Beta parametersdefaultAlphas defaultBetas
Produces a graphical balance sheet for EAP or other univarate statistics.EAPBal
Assigns effective theta levels for categorical variableeffectiveThetas
Constructs a data frame showing the effective thetas for each parent combination.eThetaFrame
Calculates the expected weight of evidence from a conditional probability frame.ewoe.CPF
Calculate the expected values for a model to match dataexpected expected.CPA expected.CPF expected.matrix
Builds expected contingency tables.catTable expTable pvecTable
Functions for measuring rater agreement.accuracy fcKappa gkLambda
A chi-squared test for whether observed data are consistent with modelg2test
Gets meta data about a conditional probability table.getTableParents getTableStates
Calculates the Goodman and Kruskal gamma measure of association.gkGamma
A link function based on Samejima's graded responsegradedResponse
Tests to see if a sequence is ascending or descendingisDecreasing isIncreasing isMonotonic isNondecreasing isNonincreasing
Distinguishes Offset from ordinary rules.getOffsetRules isOffsetRule setOffsetRules
Accuracy and Expected Accuracy Matrixes for Langauge Test.language16 language24 Language_exp Language_modal
Tests for conditional independence between two variables given a thirdciTest localDepTest
Finds an MAP estimate for a discrete partial credit CPTmapDPC
Grades on 5 mathematics tests from Mardia, Kent and BibbyMathGrades
Orders variables using Maximum Cardinality searchmcSearch
Mosaic/association plot comparing data to CPF modelassoc2 mosaic2
Calculates Mutual Information for a two-way table.mutualInformation
Normalizes a conditional probability table.normalize normalize.array normalize.CPA normalize.CPF normalize.data.frame normalize.default normalize.matrix normalize.table
Link function using a normal regression.normalLink
Splits a mixed data frame into a numeric matrix and a factor part.factorPart numericPart
Observable Characteristic PlotOCP OCP2
Plots a conditional probability distribuiton with data overlayedOCP.CPF OCP2.CPF
Conjunctive combination function with one difficulty per parent.OffsetConjunctive OffsetDisjunctive
Parses Probability Vector StringsparseProbVec parseProbVecRow
A link function based on the generalized partial credit modelpartialCredit
Produces a simplex plot of probability vectors.plotsimplex simplex_vertex_projection
Produce cumulative sum credibility intervalsproflevelci
Generate random data from a CPF modelrCPF rpCPF
Reads a file of histories of marginal distributions.readHistory
Rescales the numeric part of the tablenormalizeTable rescaleTable
Calculate residuals for differences between model and dataresids resids.array resids.CPF
Scales a matrix to have a unit diagonalscaleMatrix
Scales a table according to the Sum and Scale column.scaleTable
Produces a hanging barplotstackedBarplot
Produces a stacked, staggered barplotstackedBars
Finds graphical structure from a covariance matrixstructMatrix
Weight of Evidence Balance SheetwoeBal
Creates weights of evidence from a history matrix.woeHist