dvmisc1.1.4 package

Convenience Functions, Moving Window Statistics, and Graphics

n_2t_equal

Calculate Per-Group Sample Size for Two-Sample Equal Variance T-Test

n_2t_unequal

Calculate Per-Group Sample Size for Two-Sample Unequal Variance T-Test

odds_prob

Convert Odds to Probability

trim

Trim Tail Values off of a Vector

plot_ll

Plot Log-Likelihood vs. Values of One Parameter

pooled_var

Pooled Sample Variance

power_2t_equal

Calculate Power for Two-Sample Equal Variance T-Test

power_2t_unequal

Calculate Power for Two-Sample Unequal Variance T-Test

prob_logit

Convert Probability to Logit

prob_odds

Convert Probability to Odds

quant_groups

Split Continuous Variable into Quantile Groups

quant_groups_svy

Split Continuous Variable into Quantile Groups (Survey Version)

reverse_cut

Reverse Cut

sliding_cor

Moving Correlations as Short Vector Slides Across Long Vector

sliding_cov

Moving Covariance as Short Vector Slides Across Long Vector

sum_i

Sum of Integer Values

sumsim

Summarize Simulation Results

truerange

Range of a Vector (Not Min/Max!)

which.max2

Return Index of (First) Maximum of a Vector

which.min2

Return Index of (First) Minimum of a Vector

which_max_im

Return (Row, Column) Index of (First) Maximum of an Integer Matrix

which_max_iv

Return Index of (First) Maximum of an Integer Vector

which_max_nm

Return (Row, Column) Index of (First) Maximum of a Numeric Matrix

which_max_nv

Return Index of (First) Maximum of a Numeric Vector

which_min_im

Return (Row, Column) Index of (First) Minimum of an Integer Matrix

which_min_iv

Return Index of (First) Minimum of an Integer Vector

which_min_nm

Return (Row, Column) Index of (First) Minimum of a Numeric Matrix

which_min_nv

Return Index of (First) Minimum of a Numeric Vector

bmi3

Convert Continuous BMI Values into 3-Level Factor

bmi4

Convert Continuous BMI Values into 4-Level Factor

clean_glm

Create a Clean Summary Table from a glm Object

cleancut

Convert Numeric to Factor with Convenient Interface

create_qgroups

Create Quantile Groups

create_qgroups_svy

Create Quantile Groups (Complex Survey Data)

cut_decreasing

Cut with Decreasing Factor Levels

dots_bars

Plot Points +/- Error Bars

dvmisc

Convenience Functions, Moving Window Statistics, and Graphics

expand_grid

Similar to expand.grid but with Sequences Reversed and Ability to Trea...

gammareg

Constant-Scale Gamma Model for Y vs. Covariates with Y Potentially Sub...

get_mse

Extract Mean Squared Error (MSE) from Fitted Regression Model

headtail

Return the First and Last Part of an Object

histo

Histogram with Added Options

inside

Check Whether Numeric Value Falls Inside Two Other Numeric Values

interval_groups

Split Continuous Variable into Equal-Width Groups

iterate

Iterate Function Over All Combinations of User-Specified Inputs, Poten...

list_override

Add Elements of Second List to First List, Replacing Elements with Sam...

logit_prob

Convert Logit to Probability

lognormalreg

Linear Regression of log(Y) vs. Covariates with Y Potentially Subject ...

logodds_graph

Graph Log-Odds of Binary Variable Across A Grouping Variable

max_n

Maximum of Numeric Values

mean_i

Mean of Integer Values

means_graph

Graph Means Across a Grouping Variable

min_n

Minimum of Numeric Values

mle_gamma

Maximum Likelihood Estimation for X[1], ..., X[n] ~ Gamma(alpha, beta)

mle_gamma_lnorm

Maximum Likelihood Estimation for X[1], ..., X[n] ~ Gamma(alpha, beta)...

mle_lnorm

Maximum Likelihood Estimation for X[1], ..., X[n] ~ Lognormal(mu, sigs...

mle_lnorm_lnorm

Maximum Likelihood Estimation for X[1], ..., X[n] ~ Lognormal(mu1, sig...

moving_mean

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).

  • Maintainer: Dane R. Van Domelen
  • License: GPL-3
  • Last published: 2019-12-16