SGmisc | R Documentation |
A collection of small wrappers and convienience functions.
Steve Gutreuter: sgutreuter@gmail.com
The exported functions in the SGmisc
package are:
link{BBS_mortality}
Estimate probability of mortality among key population members from bio-behavioral surveillance surveys
computeBetaMoments
Compute the mean oand variance of the Beta distribution
computeBetaParms
Compute the shape parameters of the Beta distribution
computeGammaMoments
Compute the mean oand variance of the Gamma distribution
computeGammaParms
Compute the shape, rate and scale parameters of the Gamma distribution
count_NA
Get a count of the numbers of NA, NaN and Inf for each column of a dataframe
empCDF
Compute the empirical cumulative distribution function for a discrete random vector
fp_table
Create one- and two-way tables of frequencies and percentages
icc2deff
Compute the conventional survey design effect from the intraclass correlation
ilogit
Compute the inverse of the logit transformation ("expit" function)
logit
Compute the logit transformation of a vector of elements in (0, 1)
mid_date
Find the midpoint date between two dates
Oz_incidencer
Compute HIV incidence rate using "Osmond's" method
rand_date
Compute a random uniformly distributed date between two dates
recode_if
Conditional recoding of elements of a vector
sampsize_DHS
Compute a sample-size requirement from for a Demographic and Health Survey
sampsize_multinomial
Compute the approximate worst-case sample-size for a vector of multinomially distributed proportions
smooth_extremum
Compute a smooth differentiable approximation to the minimum or maximum of a numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.