Convenience Functions, Moving Window Statistics, and Graphics
Calculate Per-Group Sample Size for Two-Sample Equal Variance T-Test
Calculate Per-Group Sample Size for Two-Sample Unequal Variance T-Test
Convert Odds to Probability
Trim Tail Values off of a Vector
Plot Log-Likelihood vs. Values of One Parameter
Pooled Sample Variance
Calculate Power for Two-Sample Equal Variance T-Test
Calculate Power for Two-Sample Unequal Variance T-Test
Convert Probability to Logit
Convert Probability to Odds
Split Continuous Variable into Quantile Groups
Split Continuous Variable into Quantile Groups (Survey Version)
Reverse Cut
Moving Correlations as Short Vector Slides Across Long Vector
Moving Covariance as Short Vector Slides Across Long Vector
Sum of Integer Values
Summarize Simulation Results
Range of a Vector (Not Min/Max!)
Return Index of (First) Maximum of a Vector
Return Index of (First) Minimum of a Vector
Return (Row, Column) Index of (First) Maximum of an Integer Matrix
Return Index of (First) Maximum of an Integer Vector
Return (Row, Column) Index of (First) Maximum of a Numeric Matrix
Return Index of (First) Maximum of a Numeric Vector
Return (Row, Column) Index of (First) Minimum of an Integer Matrix
Return Index of (First) Minimum of an Integer Vector
Return (Row, Column) Index of (First) Minimum of a Numeric Matrix
Return Index of (First) Minimum of a Numeric Vector
Convert Continuous BMI Values into 3-Level Factor
Convert Continuous BMI Values into 4-Level Factor
Create a Clean Summary Table from a glm Object
Convert Numeric to Factor with Convenient Interface
Create Quantile Groups
Create Quantile Groups (Complex Survey Data)
Cut with Decreasing Factor Levels
Plot Points +/- Error Bars
Convenience Functions, Moving Window Statistics, and Graphics
Similar to expand.grid but with Sequences Reversed and Ability to Trea...
Constant-Scale Gamma Model for Y vs. Covariates with Y Potentially Sub...
Extract Mean Squared Error (MSE) from Fitted Regression Model
Return the First and Last Part of an Object
Histogram with Added Options
Check Whether Numeric Value Falls Inside Two Other Numeric Values
Split Continuous Variable into Equal-Width Groups
Iterate Function Over All Combinations of User-Specified Inputs, Poten...
Add Elements of Second List to First List, Replacing Elements with Sam...
Convert Logit to Probability
Linear Regression of log(Y) vs. Covariates with Y Potentially Subject ...
Graph Log-Odds of Binary Variable Across A Grouping Variable
Maximum of Numeric Values
Mean of Integer Values
Graph Means Across a Grouping Variable
Minimum of Numeric Values
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Gamma(alpha, beta)
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Gamma(alpha, beta)...
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Lognormal(mu, sigs...
Maximum Likelihood Estimation for X[1], ..., X[n] ~ Lognormal(mu1, sig...
Moving Averages
Contains functions that do something convenient (e.g. create BMI categories), functions for calculating moving-window statistics efficiently, and functions for generating various figures (e.g. histograms with fitted probability mass/density function).