Elementary Probability on Finite Sample Spaces
Sampling from Urns This function creates a sample space associated wit...
Sampling from Urns This function creates a sample space associated wit...
Generate data for logistic regression
Generate continuous model matrix data
Independent Identical Experiments Sets up a probability space correspo...
Is Repeated in a Vector Tests for a certain number of repetitions of `...
Set Difference of Subsets Calculates the (nonsymmetric) set difference...
Set Difference of Subsets Calculates the (nonsymmetric) set difference...
Simulate Draws from a Sample Space
Subsets of Probability Spaces This is a method for subset() for the ...
Tossing a Coin
Union of Subsets Calculates the union of subsets of a probability spac...
Union of Subsets Calculates the union of subsets of a probability spac...
Union of Subsets Calculates the union of subsets of a probability spac...
Union of Subsets Calculates the union of subsets of a probability spac...
Adding Random Variables to a Probability Space
A Standard Set of Playing Cards
Count Repetitions Counts the number of repetitions of vals in a give...
Count Repetitions Counts the number of repetitions of vals in a give...
Count Repetitions Counts the number of repetitions of vals in a give...
Empirical Summary of a Simulation
A Deck of Playing Cards for Euchre
Generate Two-way Tables
Generate Independent Two-way Table
Sampling from Urns This function creates a sample space associated wit...
Is Repeated in a Vector Tests for a certain number of repetitions of `...
Is Repeated in a Vector Tests for a certain number of repetitions of `...
Marginal Distributions
Sort and Merge Probability Space Outcomes
Set Difference of Subsets Calculates the (nonsymmetric) set difference...
Set Difference of Subsets Calculates the (nonsymmetric) set difference...
Test Whether One Vector Is In Another Vector
Test Whether One Vector Is In Another Vector
Probability Spaces Forms a probability space from a set of outcomes an...
Probability Spaces Forms a probability space from a set of outcomes an...
Probability Spaces Forms a probability space from a set of outcomes an...
Rolling a Die
Roulette
Test Whether One Vector Is In Another Vector
Intersection of Subsets Calculates the intersection of subsets of a pr...
Intersection of Subsets Calculates the intersection of subsets of a pr...
Intersection of Subsets Calculates the intersection of subsets of a pr...
Intersection of Subsets Calculates the intersection of subsets of a pr...
Testing for a Probability Space Decides whether a given object is a pr...
Number of Samples from an Urn
Generate All Permutations of x Elements Taken m at a Time
Probability and Conditional Probability Calculates probability and con...
Probability and Conditional Probability Calculates probability and con...
Probability and Conditional Probability Calculates probability and con...
Performs elementary probability calculations on finite sample spaces, which may be represented by data frames or lists. This package is meant to rescue some widely used functions from the archived 'prob' package (see <https://cran.r-project.org/src/contrib/Archive/prob/>). Functionality includes setting up sample spaces, counting tools, defining probability spaces, performing set algebra, calculating probability and conditional probability, tools for simulation and checking the law of large numbers, adding random variables, and finding marginal distributions. Characteristic functions for all base R distributions are included.