Package reghelper. April 8, 2017

Size: px
Start display at page:

Download "Package reghelper. April 8, 2017"

Transcription

1 Type Package Title Helper Functions for Regression Analysis Version Date Package reghelper April 8, 2017 A set of functions used to automate commonly used methods in regression analysis. This includes plotting interactions, calculating simple slopes, calculating standardized coefficients, etc. See the reghelper documentation for more information, documentation, and examples. License GPL-3 URL Depends R (>= 3.1.0) LazyData true Imports ggplot2 (>= 1.0.0), stats, nlme, lme4, utils Suggests testthat (>= 0.8.1) RoxygenNote NeedsCompilation no Author Jeffrey Hughes [aut, cre] Maintainer Jeffrey Hughes <jeff.hughes@gmail.com> Repository CRAN Date/Publication :53:04 UTC R topics documented: beta beta.glm beta.lm beta.lme beta.mermod build_ build q

2 2 R topics documented: cell_means cell_means.glm cell_means.lm cell_means_q.glm cell_means_q.lm coef.block_aov coef.block_glm coef.block_glm_summary coef.block_lm coef.block_lm_summary fitted.block_aov fitted.block_glm fitted.block_lm graph_ graph_.glm graph_.lm graph_.lme graph_.mermod graph q graph q.glm graph q.lm graph q.lme graph q.mermod ICC ICC.lme ICC.merMod print.block_aov_summary print.block_glm_summary print.block_lm_summary print.simple_slopes print.simple_slopes_lme reghelper residuals.block_aov residuals.block_glm residuals.block_glm_summary residuals.block_lm residuals.block_lm_summary sig_regions sig_regions.lm simple_slopes simple_slopes.glm simple_slopes.lm simple_slopes.lme simple_slopes.mermod summary.block_aov summary.block_glm summary.block_lm Index 59

3 beta 3 beta Standardized coeffients of a. beta is a generic function for producing standardized coefficients from regression s. beta(,...) A fitted linear of type lm, glm or aov.... Additional arguments to be passed to the particular method for the given. The form of the value returned by beta depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method. beta.lm, beta.glm, beta.aov # iris data 1 <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) beta(1) # all three variables standardized 2 <- lm(sepal.width ~ Petal.Width + Species, iris) beta(2, skip='species') # all variables except Species standardized beta.glm Standardized coeffients of a. beta.glm returns the summary of a linear where all variables have been standardized. ## S3 method for class 'glm' beta(, x = TRUE, y = FALSE, skip = NULL,...)

4 4 beta.lm A fitted generalized linear of type glm. x Logical. Whether or not to standardize predictor variables. y Logical. Whether or not to standardize criterion variables. skip A string vector indicating any variables you do not wish to be standarized.... Not currently implemented; used to ensure consistency with S3 generic. Details This function takes a generalized linear regression and standardizes the variables, in order to produce standardized (i.e., beta) coefficients rather than unstandardized (i.e., B) coefficients. Note: Unlike beta.lm, the y parameter is set to FALSE by default, to avoid issues with some family functions (e.g., binomial). Returns the summary of a generalized linear, with the output showing the beta coefficients, standard error, t-values, and p-values for each predictor. beta.glm # mtcars data 1 <- glm(vs ~ wt + hp, data=mtcars, family='binomial') beta(1) # wt and hp standardized, vs is not by default beta.lm Standardized coeffients of a. beta.lm returns the summary of a linear where all variables have been standardized. ## S3 method for class 'lm' beta(, x = TRUE, y = TRUE, skip = NULL,...) ## S3 method for class 'aov' beta(, x = TRUE, y = TRUE, skip = NULL,...)

5 beta.lme 5 A fitted linear of type lm. x Logical. Whether or not to standardize predictor variables. y Logical. Whether or not to standardize criterion variables. skip A string vector indicating any variables you do not wish to be standarized.... Not currently implemented; used to ensure consistency with S3 generic. Details This function takes a linear regression and standardizes the variables, in order to produce standardized (i.e., beta) coefficients rather than unstandardized (i.e., B) coefficients. Unlike similar functions, this function properly calculates standardized estimates for interaction terms (by first standardizing each of the individual predictor variables). Returns the summary of a linear, with the output showing the beta coefficients, standard error, t-values, and p-values for each predictor. beta.glm # iris data 1 <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) beta(1) # all three variables standardized 2 <- lm(sepal.width ~ Petal.Width + Species, iris) beta(2, skip='species') # all variables except Species standardized beta.lme Standardized coeffients of a. beta.lme returns the summary of a linear where all variables have been standardized. ## S3 method for class 'lme' beta(, x = TRUE, y = TRUE, skip = NULL,...)

6 6 beta.mermod A fitted linear of type lme. x Logical. Whether or not to standardize predictor variables. y Logical. Whether or not to standardize criterion variables. skip A string vector indicating any variables you do not wish to be standarized.... Not currently implemented; used to ensure consistency with S3 generic. Details This function takes a multi-level and standardizes the variables, in order to produce standardized (i.e., beta) coefficients rather than unstandardized (i.e., B) coefficients. Unlike similar functions, this function properly calculates standardized estimates for interaction terms (by first standardizing each of the individual predictor variables). Returns the summary of a multi-level linear, with the output showing the beta coefficients, standard error, t-values, and p-values for each predictor. beta.lm, beta.glm, beta.mermod # iris data if (require(nlme, quietly=true)) { <- lme(sepal.width ~ Sepal.Length + Petal.Length, random=~1 Species, data=iris) beta() # all three variables standardized } beta(, skip='petal.length') # all variables except Petal.Length standardized beta.mermod Standardized coeffients of a. beta.mermod returns the summary of a linear where all variables have been standardized. ## S3 method for class 'mermod' beta(, x = TRUE, y = TRUE, skip = NULL,...)

7 build_ 7 A fitted linear of type mermod (from the lme4 package). x Logical. Whether or not to standardize predictor variables. y Logical. Whether or not to standardize criterion variables. skip A string vector indicating any variables you do not wish to be standarized.... Not currently implemented; used to ensure consistency with S3 generic. Details This function takes a multi-level and standardizes the variables, in order to produce standardized (i.e., beta) coefficients rather than unstandardized (i.e., B) coefficients. Unlike similar functions, this function properly calculates standardized estimates for interaction terms (by first standardizing each of the individual predictor variables). Returns the summary of a multi-level linear, with the output showing the beta coefficients, standard error, t-values, and p-values for each predictor. beta.lm, beta.glm, beta.lme # iris data if (require(lme4, quietly=true)) { <- lmer(sepal.width ~ Sepal.Length + Petal.Length + (1 Species), data=iris) beta() # all variables standardized } beta(, skip='petal.length') # all variables except Petal.Length standardized build_ Incremental block ling. build_ allows you to incrementally add terms to a linear regression. build_(dv,..., data = NULL, opts = NULL, = "lm")

8 8 build q dv The variable name to be used as the dependent variable.... Pass through variable names (or interaction terms) to add for each block. To add one term to a block, just pass it through directly; to add multiple terms, pass it through in a vector or list. Blocks will be added in the order they are passed to the function, and variables from previous blocks will be included with each subsequent block. data opts Details An optional data frame containing the variables in the. If not found in data, the variables are taken from the environment from which the function is called. List of arguments to be passed to the function. The type of to use; only supports lm at this time. Given a list of names of variables at each step, this function will run a series of s, adding the terms for each block incrementally. Note: Cases with missing data are dropped based on the final that includes all the relevant terms. This ensures that all the s are tested on the same number of cases. A named list with the following elements: formulas s A list of the regression formulas used for each block. A list of all regression s. # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) coef(1) # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) coef(2) build q Incremental block ling. build q allows you to incrementally add terms to a linear regression.

9 build q 9 build q(dv, blocks = NULL, data = NULL, opts = NULL, = "lm") dv blocks data opts String of the variable name to be used as the dependent variable. List of variable names (or interaction terms) to add for each block. Each list element should be a single string with terms for that block. Variables from previous blocks will be included with each subsequent block. An optional data frame containing the variables in the. If not found in data, the variables are taken from the environment from which the function is called. List of arguments to be passed to the function. The type of to use; only supports lm at this time. Details Given a list of names of variables at each step, this function will run a series of s, adding the terms for each block incrementally. Note that in most cases it is easier to use build_ and pass variable names in directly instead of strings of variable names. build q uses standard evaluation in cases where such evaluation is easier. Note: Cases with missing data are dropped based on the final that includes all the relevant terms. This ensures that all the s are tested on the same number of cases. A named list with the following elements: formulas s A list of the regression formulas used for each block. A list of all regression s. build_ # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build q('sepal.length', list('petal.length + Petal.Width'), data=iris, ='lm') summary(1) coef(1) # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build q('sepal.length', list('species', 'Species + Petal.Length * Petal.Width'), data=iris, ='lm') summary(2)

10 10 cell_means.glm coef(2) cell_means Estimated means. cell_means is a generic function for calculating the estimated means of a linear. cell_means(,...) A fitted linear of type lm or aov.... Additional arguments to be passed to the particular method for the given. The form of the value returned by cell_means depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method. cell_means.lm, cell_means.aov # iris data <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) summary() cell_means(, Petal.Length) cell_means.glm Estimated values of a general linear. cell_means.glm calculates the predicted values at specific points, given a fitted general linear. ## S3 method for class 'glm' cell_means(,..., levels = NULL, type = c("link", "response"))

11 cell_means.lm 11 A fitted linear of type glm.... Pass through variable names to add them to the table. levels type A list with element names corresponding to some or all of the variables in the. Each list element should be a vector with the names of factor levels (for categorical variables) or numeric points (for continuous variables) at which to test that variable. The type of prediction required. The default link is on the scale of the linear predictors; the alternative response is on the scale of the response variable. For more information, see predict.glm. Details By default, this function will provide means at -1SD, the mean, and +1SD for continuous variables, and at each levele of categorical variables. This can be overridden with the levels parameter. If there are additional covariates in the other than what are selected in the function call, these variables will be set to their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. A data frame with a row for each predicted value. The first few columns identify the level at which each variable in your was set. After columns for each variable, the data frame has columns for the predicted value, the standard error of the predicted mean, and the 95 confidence interval. cell_means.lm # iris data <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) summary() cell_means(, Petal.Length) cell_means.lm Estimated values of a linear. cell_means.lm calculates the predicted values at specific points, given a fitted regression.

12 12 cell_means.lm ## S3 method for class 'lm' cell_means(,..., levels = NULL) ## S3 method for class 'aov' cell_means(,..., levels = NULL) A fitted linear of type lm.... Pass through variable names to add them to the table. levels A list with element names corresponding to some or all of the variables in the. Each list element should be a vector with the names of factor levels (for categorical variables) or numeric points (for continuous variables) at which to test that variable. Details By default, this function will provide means at -1SD, the mean, and +1SD for continuous variables, and at each levele of categorical variables. This can be overridden with the levels parameter. If there are additional covariates in the other than what are selected in the function call, these variables will be set to their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. A data frame with a row for each predicted value. The first few columns identify the level at which each variable in your was set. After columns for each variable, the data frame has columns for the predicted value, the standard error of the predicted mean, and the 95 confidence interval. cell_means # iris data <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) summary() cell_means(, Petal.Length)

13 cell_means_q.glm 13 cell_means_q.glm Estimated values of a general linear. cell_means_q.glm calculates the predicted values at specific points, given a fitted general linear. cell_means_q.glm(, vars = NULL, levels = NULL, type = c("link", "response")) vars levels type A fitted linear of type glm. A vector or list with variable names to be added to the table. A list with element names corresponding to some or all of the variables in the. Each list element should be a vector with the names of factor levels (for categorical variables) or numeric points (for continuous variables) at which to test that variable. The type of prediction required. The default link is on the scale of the linear predictors; the alternative response is on the scale of the response variable. For more information, see predict.glm. Details By default, this function will provide means at -1SD, the mean, and +1SD for continuous variables, and at each levele of categorical variables. This can be overridden with the levels parameter. If there are additional covariates in the other than what are selected in the function call, these variables will be set to their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. Note that in most cases it is easier to use cell_means.glm and pass variable names in directly instead of strings of variable names. cell_means_q.glm uses standard evaluation in cases where such evaluation is easier. A data frame with a row for each predicted value. The first few columns identify the level at which each variable in your was set. After columns for each variable, the data frame has columns for the predicted value, the standard error of the predicted mean, and the 95 confidence interval. cell_means.glm, cell_means_q.lm

14 14 cell_means_q.lm # iris data <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) summary() cell_means_q.lm(, 'Petal.Length') cell_means_q.lm Estimated values of a linear. cell_means_q.lm calculates the predicted values at specific points, given a fitted regression. cell_means_q.lm(, vars = NULL, levels = NULL) vars levels A fitted linear of type lm. A vector or list with variable names to be added to the table. A list with element names corresponding to some or all of the variables in the. Each list element should be a vector with the names of factor levels (for categorical variables) or numeric points (for continuous variables) at which to test that variable. Details By default, this function will provide means at -1SD, the mean, and +1SD for continuous variables, and at each levele of categorical variables. This can be overridden with the levels parameter. If there are additional covariates in the other than what are selected in the function call, these variables will be set to their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. Note that in most cases it is easier to use cell_means.lm and pass variable names in directly instead of strings of variable names. cell_means_q.lm uses standard evaluation in cases where such evaluation is easier. A data frame with a row for each predicted value. The first few columns identify the level at which each variable in your was set. After columns for each variable, the data frame has columns for the predicted value, the standard error of the predicted mean, and the 95 confidence interval. cell_means.lm

15 coef.block_aov 15 # iris data <- lm(sepal.length ~ Petal.Length + Petal.Width, iris) summary() cell_means_q.lm(, 'Petal.Length') coef.block_aov Extract coefficients. coef method for class "block_aov". ## S3 method for class 'block_aov' coef(object, num = NULL,...) object An object of class "block_aov", usually, a result of a call to build_. num Numeric vector with the index of (s) from which to return the coefficients.... Further arguments passed to or from other methods. The coefficients of block(s) num, or if num is NULL, a list of coefficients from all blocks. build_, fitted.block_aov, residuals.block_aov # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) coef(1) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) coef(2, num=2) # returns second block

16 16 coef.block_glm coef.block_glm Extract coefficients. coef method for class "block_glm". ## S3 method for class 'block_glm' coef(object, num = NULL,...) object num An object of class "block_glm", usually, a result of a call to build_. Numeric vector with the index of (s) from which to return the coefficients.... Further arguments passed to or from other methods. The coefficients of block(s) num, or if num is NULL, a list of coefficients from all blocks. build_, coef.block_glm_summary, fitted.block_glm, residuals.block_glm # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) coef(1) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) coef(2, num=2) # returns second block

17 coef.block_glm_summary 17 coef.block_glm_summary Extract coefficients. coef method for class "block_glm_summary". ## S3 method for class 'block_glm_summary' coef(object, num = NULL,...) object num An object of class "block_glm_summary", usually, a result of a call to summary.block_glm. Numeric vector with the index of (s) from which to return the coefficients.... Further arguments passed to or from other methods. The coefficients of block(s) num, or if num is NULL, a list of coefficients from all blocks. summary.block_glm, coef.block_glm, residuals.block_glm_summary # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') coef(summary(1)) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') coef(summary(2), num=2) # returns second block

18 18 coef.block_lm coef.block_lm Extract coefficients. coef method for class "block_lm". ## S3 method for class 'block_lm' coef(object, num = NULL,...) object num An object of class "block_lm", usually, a result of a call to build_. Numeric vector with the index of (s) from which to return the coefficients.... Further arguments passed to or from other methods. The coefficients of block(s) num, or if num is NULL, a list of coefficients from all blocks. build_, coef.block_lm_summary, fitted.block_lm, residuals.block_lm # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) coef(1) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) coef(2, num=2) # returns second block

19 coef.block_lm_summary 19 coef.block_lm_summary Extract coefficients. coef method for class "block_lm_summary". ## S3 method for class 'block_lm_summary' coef(object, num = NULL,...) object num An object of class "block_lm_summary", usually, a result of a call to summary.block_lm. Numeric vector with the index of (s) from which to return the coefficients.... Further arguments passed to or from other methods. The coefficients of block(s) num, or if num is NULL, a list of coefficients from all blocks. summary.block_lm, coef.block_lm, residuals.block_lm_summary # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') coef(summary(1)) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') coef(summary(2), num=2) # returns second block fitted.block_aov Extract fitted values. fitted method for class "block_aov". ## S3 method for class 'block_aov' fitted(object, num = NULL,...)

20 20 fitted.block_glm object num An object of class "block_aov", usually, a result of a call to build_. Numeric vector with the index of (s) from which to return the fitted values.... Further arguments passed to or from other methods. The fitted values of block(s) num, or if num is NULL, a list of fitted values from all blocks. build_, coef.block_aov, residuals.block_aov # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) fitted(1) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) fitted(2, num=2) # returns second block fitted.block_glm Extract fitted values. fitted method for class "block_glm". ## S3 method for class 'block_glm' fitted(object, num = NULL,...) object num An object of class "block_glm", usually, a result of a call to build_. Numeric vector with the index of (s) from which to return the fitted values.... Further arguments passed to or from other methods. The fitted values of block(s) num, or if num is NULL, a list of fitted values from all blocks.

21 fitted.block_lm 21 build_, coef.block_glm, residuals.block_glm # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) fitted(1) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) fitted(2, num=2) # returns second block fitted.block_lm Extract fitted values. fitted method for class "block_lm". ## S3 method for class 'block_lm' fitted(object, num = NULL,...) object An object of class "block_lm", usually, a result of a call to build_. num Numeric vector with the index of (s) from which to return the fitted values.... Further arguments passed to or from other methods. The fitted values of block(s) num, or if num is NULL, a list of fitted values from all blocks. build_, coef.block_lm, residuals.block_lm

22 22 graph_ # 2 blocks: Petal.Length; Petal.Length + Petal.Width 1 <- build_(sepal.length, Petal.Length, Petal.Width, data=iris, ='lm') summary(1) fitted(1) # returns both blocks 1 and 2 # 2 blocks: Species; Species + Petal.Length + Petal.Width + Petal.Length:Petal.Width 2 <- build_(sepal.length, Species, c(petal.length * Petal.Width), data=iris, ='lm') summary(2) fitted(2, num=2) # returns second block graph_ Graph fitted interactions. graph_ provides an easy way to graph interactions in fitted s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). graph_(,...) A fitted linear of type lm, glm, lme, or mermod.... Additional arguments to be passed to the particular method for the given. A ggplot2 graph of the plotted variables in the. graph_.lm, graph_.glm # iris data <- lm(sepal.width ~ Sepal.Length * Species, data=iris) graph_(, y=sepal.width, x=sepal.length, lines=species)

23 graph_.glm 23 graph_.glm Graph general linear interactions. graph_.glm provides an easy way to graph interactions in general linear s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'glm' graph_(, y, x, lines = NULL, split = NULL, type = c("link", "response"), errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) y x lines split type errorbars ymin ymax labels bargraph draw.legend dodge A fitted linear of type glm. The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional). The variable to be split among separate graphs (optional). The type of prediction required. The default link is on the scale of the linear predictors; the alternative response is on the scale of the response variable. For more information, see predict.glm. A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph. A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases.

24 24 graph_.lm exp Details Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. A ggplot2 graph of the plotted variables in the. graph_.lm # iris data <- lm(sepal.width ~ Sepal.Length * Species, data=iris) graph_(, y=sepal.width, x=sepal.length, lines=species) graph_.lm Graph linear interactions. graph_.lm provides an easy way to graph interactions in linear s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'lm' graph_(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) ## S3 method for class 'aov' graph_(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...)

25 graph_.lm 25 y x lines split errorbars ymin ymax labels bargraph draw.legend dodge exp Details A fitted linear of type lm. The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional). The variable to be split among separate graphs (optional). A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph. A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases. Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. A ggplot2 graph of the plotted variables in the. # iris data <- lm(sepal.width ~ Sepal.Length * Species, data=iris) graph_(, y=sepal.width, x=sepal.length, lines=species)

26 26 graph_.lme graph_.lme Graph multi-level interactions. graph_.lme provides an easy way to graph interactions in multi-level s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'lme' graph_(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) y x lines split errorbars ymin ymax labels bargraph draw.legend dodge exp A fitted linear of type lme. The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional). The variable to be split among separate graphs (optional). A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph. A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases. Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic.

27 graph_.mermod 27 Details This function only deals with fixed effects of the, after the random effects have been accounted for. To look at the lower-level effects, consider using predict.lme to generate predicted values at the desired level. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. A ggplot2 graph of the plotted variables in the. graph_.mermod, graph_.lm # Orthodont data if (require(nlme, quietly=true)) { <- lme(distance ~ age * Sex, data=orthodont, random=~1 Subject) graph_(, y=distance, x=age, lines=sex) } graph_.mermod Graph multi-level interactions. graph_.mermod provides an easy way to graph interactions in multi-level s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'mermod' graph_(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) y x lines A fitted linear of type mermod (from the lme4 package). The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional).

28 28 graph_.mermod split errorbars ymin ymax labels bargraph draw.legend dodge exp Details The variable to be split among separate graphs (optional). A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph. A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases. Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic. This function only deals with fixed effects of the, after the random effects have been accounted for. To look at the lower-level effects, consider using predict.mermod to generate predicted values at the desired level. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. A ggplot2 graph of the plotted variables in the. graph_.lme, graph_.lm # Arabidopsis data if (require(lme4, quietly=true)) { <- lmer(total.fruits ~ nutrient * amd + rack + (1 gen), data=arabidopsis) graph_(, y=total.fruits, x=nutrient, lines=amd) }

29 graph q 29 graph q Graph fitted interactions. graph q provides an easy way to graph interactions in fitted s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). graph q(,...) A fitted linear of type lm, glm, lme, or mermod.... Additional arguments to be passed to the particular method for the given. Details Note that in most cases it is easier to use graph_ and pass variable names in directly instead of strings of variable names. graph q uses standard evaluation in cases where such evaluation is easier. A ggplot2 graph of the plotted variables in the. graph_.lm, graph_.glm # iris data <- lm(sepal.width ~ Sepal.Length * Species, data=iris) graph q(, y='sepal.width', x='sepal.length', lines='species')

30 30 graph q.glm graph q.glm Graph general linear interactions. graph q.glm provides an easy way to graph interactions in general linear s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'glm' graph q(, y, x, lines = NULL, split = NULL, type = c("link", "response"), errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) y x lines split type errorbars ymin ymax labels bargraph draw.legend dodge A fitted linear of type glm. The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional). The variable to be split among separate graphs (optional). The type of prediction required. The default link is on the scale of the linear predictors; the alternative response is on the scale of the response variable. For more information, see predict.glm. A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph. A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases.

31 graph q.lm 31 exp Details Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. Note that in most cases it is easier to use graph_.glm and pass variable names in directly instead of strings of variable names. graph q.glm uses standard evaluation in cases where such evaluation is easier. A ggplot object of the plotted variables in the. graph_.glm, graph q.lm # iris data <- lm(sepal.width ~ Sepal.Length * Species, data=iris) graph q(, y='sepal.width', x='sepal.length', lines='species') graph q.lm Graph linear interactions. graph q.lm provides an easy way to graph interactions in linear s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'lm' graph q(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) ## S3 method for class 'aov' graph q(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...)

32 32 graph q.lm y x lines split errorbars ymin ymax labels bargraph draw.legend dodge exp Details A fitted linear of type lm. The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional). The variable to be split among separate graphs (optional). A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph. A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases. Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. Note that in most cases it is easier to use graph_.lm and pass variable names in directly instead of strings of variable names. graph q.lm uses standard evaluation in cases where such evaluation is easier. A ggplot object of the plotted variables in the. graph_.lm

33 graph q.lme 33 # iris data <- lm(sepal.width ~ Sepal.Length * Species, data=iris) graph q(, y='sepal.width', x='sepal.length', lines='species') graph q.lme Graph multi-level interactions. graph q.lme provides an easy way to graph interactions in multi-level s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical). ## S3 method for class 'lme' graph q(, y, x, lines = NULL, split = NULL, errorbars = c("ci", "SE", "none"), ymin = NULL, ymax = NULL, labels = NULL, bargraph = FALSE, draw.legend = TRUE, dodge = 0, exp = FALSE,...) y x lines split errorbars ymin ymax labels bargraph draw.legend A fitted linear of type lme. The variable to be plotted on the y-axis. This variable is required for the graph. The variable to be plotted on the x-axis. This variable is required for the graph. The variable to be plotted using separate lines (optional). The variable to be split among separate graphs (optional). A string indicating what kind of error bars to show. Acceptable values are "CI" (95 error of the predicted means), or "none". Number indicating the minimum value for the y-axis scale. Default NULL value will adjust position to the lowest y value. Number indicating the maximum value for the y-axis scale. Default NULL value will adjust position to the highest y value. A named list with strings for the various plot labels: title will set the graph title, y sets the y-axis label, x sets the x-axis label, lines sets the legend label, and split sets the label for the facet. If any label is not set, the names of the variables will be used. Setting a label explicitly to NA will set an empty label. Logical. TRUE will draw a bar graph of the results; FALSE will draw a line graph of the results. Logical. Whether or not to draw legend on the graph.

34 34 graph q.mermod dodge exp A numeric value indicating the amount each point on the graph should be shifted left or right, which can help for readability when points are close together. Default value is 0, with.1 or.2 probably sufficient in most cases. Logical. If TRUE, the exponential function exp() will be used to transform the y-axis (i.e., e to the power of y). Useful for logistic regressions or for converting log-transformed y-values to their original units.... Not currently implemented; used to ensure consistency with S3 generic. Details This function only deals with fixed effects of the, after the random effects have been accounted for. To look at the lower-level effects, consider using predict.lme to generate predicted values at the desired level. If there are additional covariates in the other than what is indicated to be graphed by the function, these variables will be plotted at their respective means. In the case of a categorical covariate, the results will be averaged across all its levels. Note that in most cases it is easier to use graph_.lme and pass variable names in directly instead of strings of variable names. graph q.lme uses standard evaluation in cases where such evaluation is easier. A ggplot2 graph of the plotted variables in the. graph_.lme, graph q.mermod, graph q.lm # Orthodont data if (require(nlme, quietly=true)) { <- lme(distance ~ age * Sex, data=orthodont, random=~1 Subject) graph q(, y='distance', x='age', lines='sex') } graph q.mermod Graph multi-level interactions. graph q.mermod provides an easy way to graph interactions in multi-level s. Selected variables will be graphed at +/- 1 SD (if continuous) or at each level of the factor (if categorical).

Package glmnetutils. August 1, 2017

Package glmnetutils. August 1, 2017 Type Package Version 1.1 Title Utilities for 'Glmnet' Package glmnetutils August 1, 2017 Description Provides a formula interface for the 'glmnet' package for elasticnet regression, a method for cross-validating

More information

Intro to R for Epidemiologists

Intro to R for Epidemiologists Lab 9 (3/19/15) Intro to R for Epidemiologists Part 1. MPG vs. Weight in mtcars dataset The mtcars dataset in the datasets package contains fuel consumption and 10 aspects of automobile design and performance

More information

Package sqlscore. April 29, 2018

Package sqlscore. April 29, 2018 Version 0.1.3 Package sqlscore April 29, 2018 Title Utilities for Generating SQL Queries from Model Objects Provides utilities for generating SQL queries (particularly CREATE TABLE statements) from R model

More information

Package interplot. R topics documented: June 30, 2018

Package interplot. R topics documented: June 30, 2018 Package interplot June 30, 2018 Title Plot the Effects of Variables in Interaction Terms Version 0.2.1 Maintainer Yue Hu Description Plots the conditional coefficients (``marginal

More information

Package vinereg. August 10, 2018

Package vinereg. August 10, 2018 Type Package Title D-Vine Quantile Regression Version 0.5.0 Package vinereg August 10, 2018 Maintainer Thomas Nagler Description Implements D-vine quantile regression models with parametric

More information

Package colf. October 9, 2017

Package colf. October 9, 2017 Type Package Package colf October 9, 2017 Title Constrained Optimization on Linear Function Version 0.1.3 URL https://github.com/lyzander/colf BugReports https://github.com/lyzander/colf/issues Depends

More information

Package vip. June 15, 2018

Package vip. June 15, 2018 Type Package Title Variable Importance Plots Version 0.1.0 Package vip June 15, 2018 A general framework for constructing variable importance plots from various types machine learning models in R. Aside

More information

Package svalues. July 15, 2018

Package svalues. July 15, 2018 Type Package Package svalues July 15, 2018 Title Measures of the Sturdiness of Regression Coefficients Version 0.1.6 Author Carlos Cinelli Maintainer Carlos Cinelli Implements

More information

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2 Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2 Package gggenes November 7, 2018 Provides a 'ggplot2' geom and helper functions for drawing gene arrow maps. Depends R (>= 3.3.0) Imports grid (>=

More information

Package quickreg. R topics documented:

Package quickreg. R topics documented: Package quickreg September 28, 2017 Title Build Regression Models Quickly and Display the Results Using 'ggplot2' Version 1.5.0 A set of functions to extract results from regression models and plot the

More information

Package citools. October 20, 2018

Package citools. October 20, 2018 Type Package Package citools October 20, 2018 Title Confidence or Prediction Intervals, Quantiles, and Probabilities for Statistical Models Version 0.5.0 Maintainer John Haman Functions

More information

Package modmarg. R topics documented:

Package modmarg. R topics documented: Package modmarg February 1, 2018 Title Calculating Marginal Effects and Levels with Errors Version 0.9.2 Calculate predicted levels and marginal effects, using the delta method to calculate standard errors.

More information

Package palmtree. January 16, 2018

Package palmtree. January 16, 2018 Package palmtree January 16, 2018 Title Partially Additive (Generalized) Linear Model Trees Date 2018-01-15 Version 0.9-0 Description This is an implementation of model-based trees with global model parameters

More information

Package ECctmc. May 1, 2018

Package ECctmc. May 1, 2018 Type Package Package ECctmc May 1, 2018 Title Simulation from Endpoint-Conditioned Continuous Time Markov Chains Version 0.2.5 Date 2018-04-30 URL https://github.com/fintzij/ecctmc BugReports https://github.com/fintzij/ecctmc/issues

More information

Package TVsMiss. April 5, 2018

Package TVsMiss. April 5, 2018 Type Package Title Variable Selection for Missing Data Version 0.1.1 Date 2018-04-05 Author Jiwei Zhao, Yang Yang, and Ning Yang Maintainer Yang Yang Package TVsMiss April 5, 2018

More information

Package rfsa. R topics documented: January 10, Type Package

Package rfsa. R topics documented: January 10, Type Package Type Package Package rfsa January 10, 2018 Title Feasible Solution Algorithm for Finding Best Subsets and Interactions Version 0.9.1 Date 2017-12-21 Assists in statistical model building to find optimal

More information

Package rpst. June 6, 2017

Package rpst. June 6, 2017 Type Package Title Recursive Partitioning Survival Trees Version 1.0.0 Date 2017-6-6 Author Maintainer Package rpst June 6, 2017 An implementation of Recursive Partitioning Survival Trees

More information

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features Type Package Version 0.0.2 Title Encode Categorical Features Package cattonum May 2, 2018 Functions for dummy encoding, frequency encoding, label encoding, leave-one-out encoding, mean encoding, median

More information

Package lcc. November 16, 2018

Package lcc. November 16, 2018 Type Package Title Longitudinal Concordance Correlation Version 1.0 Author Thiago de Paula Oliveira [aut, cre], Rafael de Andrade Moral [aut], John Hinde [aut], Silvio Sandoval Zocchi [aut, ctb], Clarice

More information

Package gppm. July 5, 2018

Package gppm. July 5, 2018 Version 0.2.0 Title Gaussian Process Panel Modeling Package gppm July 5, 2018 Provides an implementation of Gaussian process panel modeling (GPPM). GPPM is described in Karch (2016; )

More information

Package simr. April 30, 2018

Package simr. April 30, 2018 Type Package Package simr April 30, 2018 Title Power Analysis for Generalised Linear Mixed Models by Simulation Calculate power for generalised linear mixed models, using simulation. Designed to work with

More information

Package embed. November 19, 2018

Package embed. November 19, 2018 Version 0.0.2 Package embed November 19, 2018 Title Extra Recipes for Encoding Categorical Predictors Description Factor predictors can be converted to one or more numeric representations using simple

More information

Package PCADSC. April 19, 2017

Package PCADSC. April 19, 2017 Type Package Package PCADSC April 19, 2017 Title Tools for Principal Component Analysis-Based Data Structure Comparisons Version 0.8.0 A suite of non-parametric, visual tools for assessing differences

More information

Package fastdummies. January 8, 2018

Package fastdummies. January 8, 2018 Type Package Package fastdummies January 8, 2018 Title Fast Creation of Dummy (Binary) Columns and Rows from Categorical Variables Version 1.0.0 Description Creates dummy columns from columns that have

More information

Package MOST. November 9, 2017

Package MOST. November 9, 2017 Type Package Title Multiphase Optimization Strategy Version 0.1.0 Depends R (>= 2.15.0) Copyright The Pennsylvania State University Package MOST November 9, 2017 Description Provides functions similar

More information

Package tidylpa. March 28, 2018

Package tidylpa. March 28, 2018 Type Package Title Easily Carry Out Latent Profile Analysis Version 0.1.3 Package tidylpa March 28, 2018 An interface to the 'mclust' package to easily carry out latent profile analysis (``LPA''). Provides

More information

Package glinternet. June 15, 2018

Package glinternet. June 15, 2018 Type Package Package glinternet June 15, 2018 Title Learning Interactions via Hierarchical Group-Lasso Regularization Version 1.0.8 Date 2018-06-20 Author Michael Lim, Trevor Hastie Maintainer Michael

More information

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm Package naivebayes January 3, 2018 Type Package Title High Performance Implementation of the Naive Bayes Algorithm Version 0.9.2 Author Michal Majka Maintainer Michal Majka Description

More information

Package epitab. July 4, 2018

Package epitab. July 4, 2018 Type Package Package epitab July 4, 2018 Title Flexible Contingency Tables for Epidemiology Version 0.2.2 Author Stuart Lacy Maintainer Stuart Lacy Builds contingency tables that

More information

Package arulescba. April 24, 2018

Package arulescba. April 24, 2018 Version 1.1.3-1 Date 2018-04-23 Title Classification Based on Association Rules Package arulescba April 24, 2018 Provides a function to build an association rulebased classifier for data frames, and to

More information

Package ggmosaic. February 9, 2017

Package ggmosaic. February 9, 2017 Title Mosaic Plots in the 'ggplot2' Framework Version 0.1.2 Package ggmosaic February 9, 2017 Mosaic plots in the 'ggplot2' framework. Mosaic plot functionality is provided in a single 'ggplot2' layer

More information

Package mason. July 5, 2018

Package mason. July 5, 2018 Type Package Package mason July 5, 2018 Title Build Data Structures for Common Statistical Analysis Version 0.2.6 Use a consistent syntax to create structures of common statistical techniques that can

More information

Package BiDimRegression

Package BiDimRegression Version 2.0.0 Date 2018-05-09 Package BiDimRegression May 16, 2018 Title Calculates the Bidimensional Regression Between Two 2D Configurations Imports Formula, methods Depends R (>= 1.8.0) Calculates the

More information

Package intccr. September 12, 2017

Package intccr. September 12, 2017 Type Package Package intccr September 12, 2017 Title Semiparametric Competing Risks Regression under Interval Censoring Version 0.2.0 Author Giorgos Bakoyannis , Jun Park

More information

Creating publication-ready Word tables in R

Creating publication-ready Word tables in R Creating publication-ready Word tables in R Sara Weston and Debbie Yee 12/09/2016 Has this happened to you? You re working on a draft of a manuscript with your adviser, and one of her edits is something

More information

Package fitplc. March 2, 2017

Package fitplc. March 2, 2017 Type Package Title Fit Hydraulic Vulnerability Curves Version 1.1-7 Author Remko Duursma Package fitplc March 2, 2017 Maintainer Remko Duursma Fits Weibull or sigmoidal models

More information

Package breakdown. June 14, 2018

Package breakdown. June 14, 2018 Package breakdown June 14, 2018 Title Model Agnostic Explainers for Individual Predictions Version 0.1.6 Model agnostic tool for decomposition of predictions from black boxes. Break Down Table shows contributions

More information

Package areaplot. October 18, 2017

Package areaplot. October 18, 2017 Version 1.2-0 Date 2017-10-18 Package areaplot October 18, 2017 Title Plot Stacked Areas and Confidence Bands as Filled Polygons Imports graphics, grdevices, stats Suggests MASS Description Plot stacked

More information

Package optimus. March 24, 2017

Package optimus. March 24, 2017 Type Package Package optimus March 24, 2017 Title Model Based Diagnostics for Multivariate Cluster Analysis Version 0.1.0 Date 2017-03-24 Maintainer Mitchell Lyons Description

More information

Package ClusterBootstrap

Package ClusterBootstrap Package ClusterBootstrap June 26, 2018 Title Analyze Clustered Data with Generalized Linear Models using the Cluster Bootstrap Date 2018-06-26 Version 1.0.0 Provides functionality for the analysis of clustered

More information

Package dalmatian. January 29, 2018

Package dalmatian. January 29, 2018 Package dalmatian January 29, 2018 Title Automating the Fitting of Double Linear Mixed Models in 'JAGS' Version 0.3.0 Date 2018-01-19 Automates fitting of double GLM in 'JAGS'. Includes automatic generation

More information

Package milr. June 8, 2017

Package milr. June 8, 2017 Type Package Package milr June 8, 2017 Title Multiple-Instance Logistic Regression with LASSO Penalty Version 0.3.0 Date 2017-06-05 The multiple instance data set consists of many independent subjects

More information

Package basictrendline

Package basictrendline Version 2.0.3 Date 2018-07-26 Package basictrendline July 26, 2018 Title Add Trendline and Confidence Interval of Basic Regression Models to Plot Maintainer Weiping Mei Plot, draw

More information

Package FWDselect. December 19, 2015

Package FWDselect. December 19, 2015 Title Selecting Variables in Regression Models Version 2.1.0 Date 2015-12-18 Author Marta Sestelo [aut, cre], Nora M. Villanueva [aut], Javier Roca-Pardinas [aut] Maintainer Marta Sestelo

More information

Package Cubist. December 2, 2017

Package Cubist. December 2, 2017 Type Package Package Cubist December 2, 2017 Title Rule- And Instance-Based Regression Modeling Version 0.2.1 Date 2017-12-01 Maintainer Max Kuhn Description Regression modeling using

More information

Package lucid. August 24, 2018

Package lucid. August 24, 2018 Version 1.6 Package lucid August 24, 2018 Title Printing Floating Point Numbers in a Human-Friendly Format Description Print vectors (and data frames) of floating point numbers using a non-scientific format

More information

Package psda. September 5, 2017

Package psda. September 5, 2017 Title Polygonal Symbolic Data Analysis Version 1.0.0 Date 2017-09-05 Package psda September 5, 2017 An implementation of symbolic al data analysis. The package presents the estimation of main descriptive

More information

Package FSelectorRcpp

Package FSelectorRcpp Type Package Package FSelectorRcpp November 12, 2018 Title 'Rcpp' Implementation of 'FSelector' Entropy-Based Feature Selection Algorithms with a Sparse Matrix Support Version 0.3.0 Description 'Rcpp'

More information

Package misclassglm. September 3, 2016

Package misclassglm. September 3, 2016 Type Package Package misclassglm September 3, 2016 Title Computation of Generalized Linear Models with Misclassified Covariates Using Side Information Version 0.2.0 Date 2016-09-02 Author Stephan Dlugosz

More information

Package tidyimpute. March 5, 2018

Package tidyimpute. March 5, 2018 Title Imputation the Tidyverse Way Version 0.1.0 Date 2018-02-01 Package tidyimpute March 5, 2018 URL https://github.com/decisionpatterns/tidyimpute Functions and methods for imputing missing values (NA)

More information

Package QCAtools. January 3, 2017

Package QCAtools. January 3, 2017 Title Helper Functions for QCA in R Version 0.2.3 Package QCAtools January 3, 2017 Author Jirka Lewandowski [aut, cre] Maintainer Jirka Lewandowski

More information

Package glue. March 12, 2019

Package glue. March 12, 2019 Package glue March 12, 2019 Title Interpreted String Literals Version 1.3.1 An implementation of interpreted string literals, inspired by Python's Literal String Interpolation

More information

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0 Type Package Title Power Analysis for AB Testing Version 0.1.0 Package pwrab June 6, 2017 Maintainer William Cha Power analysis for AB testing. The calculations are based

More information

Package datasets.load

Package datasets.load Title Interface for Loading Datasets Version 0.1.0 Package datasets.load December 14, 2016 Visual interface for loading datasets in RStudio from insted (unloaded) s. Depends R (>= 3.0.0) Imports shiny,

More information

Package RLRsim. November 4, 2016

Package RLRsim. November 4, 2016 Type Package Package RLRsim November 4, 2016 Title Exact (Restricted) Likelihood Ratio Tests for Mixed and Additive Models Version 3.1-3 Date 2016-11-03 Maintainer Fabian Scheipl

More information

Package clipr. June 23, 2018

Package clipr. June 23, 2018 Type Package Title Read and Write from the System Clipboard Version 0.4.1 Package clipr June 23, 2018 Simple utility functions to read from and write to the Windows, OS X, and X11 clipboards. Imports utils

More information

Package bife. May 7, 2017

Package bife. May 7, 2017 Type Package Title Binary Choice Models with Fixed Effects Version 0.4 Date 2017-05-06 Package May 7, 2017 Estimates fixed effects binary choice models (logit and probit) with potentially many individual

More information

Package CompGLM. April 29, 2018

Package CompGLM. April 29, 2018 Type Package Package CompGLM April 29, 2018 Title Conway-Maxwell-Poisson GLM and Distribution Functions Version 2.0 Date 2018-04-29 Author Jeffrey Pollock Maintainer URL https://github.com/jeffpollock9/compglm

More information

Package DTRreg. August 30, 2017

Package DTRreg. August 30, 2017 Package DTRreg August 30, 2017 Type Package Title DTR Estimation and Inference via G-Estimation, Dynamic WOLS, and Q-Learning Version 1.3 Date 2017-08-30 Author Michael Wallace, Erica E M Moodie, David

More information

Package sure. September 19, 2017

Package sure. September 19, 2017 Type Package Package sure September 19, 2017 Title Surrogate Residuals for Ordinal and General Regression Models An implementation of the surrogate approach to residuals and diagnostics for ordinal and

More information

Package apastyle. March 29, 2017

Package apastyle. March 29, 2017 Type Package Title Generate APA Tables for MS Word Version 0.5 Date 2017-03-29 Author Jort de Vreeze [aut, cre] Package apastyle March 29, 2017 Maintainer Jort de Vreeze Most

More information

Package dotwhisker. R topics documented: June 28, Type Package

Package dotwhisker. R topics documented: June 28, Type Package Type Package Package dotwhisker June 28, 2017 Title Dot-and-Whisker Plots of Regression Results Version 0.3.0 Date 2017-06-28 Maintainer Yue Hu Quick and easy dot-and-whisker plots

More information

Package OLScurve. August 29, 2016

Package OLScurve. August 29, 2016 Type Package Title OLS growth curve trajectories Version 0.2.0 Date 2014-02-20 Package OLScurve August 29, 2016 Maintainer Provides tools for more easily organizing and plotting individual ordinary least

More information

Package ArCo. November 5, 2017

Package ArCo. November 5, 2017 Title Artificial Counterfactual Package Version 0.3-1 Date 2017-11-05 Package ArCo November 5, 2017 Maintainer Gabriel F. R. Vasconcelos BugReports https://github.com/gabrielrvsc/arco/issues

More information

Package PrivateLR. March 20, 2018

Package PrivateLR. March 20, 2018 Type Package Package PrivateLR March 20, 2018 Title Differentially Private Regularized Logistic Regression Version 1.2-22 Date 2018-03-19 Author Staal A. Vinterbo Maintainer Staal

More information

Package caretensemble

Package caretensemble Package caretensemble Type Package Title Ensembles of Caret Models Version 2.0.0 Date 2016-02-06 August 29, 2016 URL https://github.com/zachmayer/caretensemble BugReports https://github.com/zachmayer/caretensemble/issues

More information

Package linear.tools

Package linear.tools Type Package Package linear.tools July 6, 2016 Title Manipulate Formulas and Evaluate Marginal Effects Version 1.3.0 Author Fan Yang Maintainer Fan Yang Provides tools to manipulate formulas,

More information

Package spark. July 21, 2017

Package spark. July 21, 2017 Title 'Sparklines' in the 'R' Terminal Version 2.0.0 Author Gábor Csárdi Package spark July 21, 2017 Maintainer Gábor Csárdi A 'sparkline' is a line chart, without axes and labels.

More information

Package balance. October 12, 2018

Package balance. October 12, 2018 Title Visualize Balances of Compositional Data Version 0.1.6 URL http://github.com/tpq/balance Package balance October 12, 2018 BugReports http://github.com/tpq/balance/issues Balances have become a cornerstone

More information

Package RAMP. May 25, 2017

Package RAMP. May 25, 2017 Type Package Package RAMP May 25, 2017 Title Regularized Generalized Linear Models with Interaction Effects Version 2.0.1 Date 2017-05-24 Author Yang Feng, Ning Hao and Hao Helen Zhang Maintainer Yang

More information

Package CuCubes. December 9, 2016

Package CuCubes. December 9, 2016 Package CuCubes December 9, 2016 Title MultiDimensional Feature Selection (MDFS) Version 0.1.0 URL https://featureselector.uco.uwb.edu.pl/pub/cucubes/ Functions for MultiDimensional Feature Selection (MDFS):

More information

Package ggrepel. September 30, 2017

Package ggrepel. September 30, 2017 Version 0.7.0 Package ggrepel September 30, 2017 Title Repulsive Text and Label Geoms for 'ggplot2' Description Provides text and label geoms for 'ggplot2' that help to avoid overlapping text labels. Labels

More information

Package VWPre. March 20, 2018

Package VWPre. March 20, 2018 Type Package Title Tools for Preprocessing Visual World Data Version 1.1.0 Date 2018-03-18 Author Vincent Porretta [aut, cre], Aki-Juhani Kyröläinen [aut], Jacolien van Rij [ctb], Juhani Järvikivi [ctb]

More information

Package oaxaca. January 3, Index 11

Package oaxaca. January 3, Index 11 Type Package Title Blinder-Oaxaca Decomposition Version 0.1.4 Date 2018-01-01 Package oaxaca January 3, 2018 Author Marek Hlavac Maintainer Marek Hlavac

More information

Package assertr. R topics documented: February 23, Type Package

Package assertr. R topics documented: February 23, Type Package Type Package Package assertr February 23, 2018 Title Assertive Programming for R Analysis Pipelines Version 2.5 Provides functionality to assert conditions that have to be met so that errors in data used

More information

Package sizemat. October 19, 2018

Package sizemat. October 19, 2018 Type Package Title Estimate Size at Sexual Maturity Version 1.0.0 Date 2018-10-18 Package sizemat October 19, 2018 Maintainer Josymar Torrejon-Magallanes Contains functions to estimate

More information

Package bayesdp. July 10, 2018

Package bayesdp. July 10, 2018 Type Package Package bayesdp July 10, 2018 Title Tools for the Bayesian Discount Prior Function Version 1.3.2 Date 2018-07-10 Depends R (>= 3.2.3), ggplot2, survival, methods Functions for data augmentation

More information

Package climber. R topics documented:

Package climber. R topics documented: Package climber November 19, 2016 Title Calculate Average Minimal Depth of a Maximal Subtree for 'ranger' Package Forests Version 0.0.1 Calculates first, and second order, average minimal depth of a maximal

More information

Package ecotox. June 28, 2018

Package ecotox. June 28, 2018 Type Package Title Analysis of Ecotoxicology Version 1.3.2 Package ecotox June 28, 2018 Description A simple approach to using a probit or logit analysis to calculate lethal concentration (LC) or time

More information

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files Version 0.1.3 Date 2018-08-12 Title Read Large Text Files Package bigreadr August 13, 2018 Read large text s by splitting them in smaller s. License GPL-3 Encoding UTF-8 LazyData true ByteCompile true

More information

Package robets. March 6, Type Package

Package robets. March 6, Type Package Type Package Package robets March 6, 2018 Title Forecasting Time Series with Robust Exponential Smoothing Version 1.4 Date 2018-03-06 We provide an outlier robust alternative of the function ets() in the

More information

Package superheat. February 4, 2017

Package superheat. February 4, 2017 Type Package Package superheat February 4, 2017 Title A Graphical Tool for Exploring Complex Datasets Using Heatmaps Version 0.1.0 Description A system for generating extendable and customizable heatmaps

More information

Package sparsereg. R topics documented: March 10, Type Package

Package sparsereg. R topics documented: March 10, Type Package Type Package Package sparsereg March 10, 2016 Title Sparse Bayesian Models for Regression, Subgroup Analysis, and Panel Data Version 1.2 Date 2016-03-01 Author Marc Ratkovic and Dustin Tingley Maintainer

More information

Package PSTR. September 25, 2017

Package PSTR. September 25, 2017 Type Package Package PSTR September 25, 2017 Title Panel Smooth Transition Regression Modelling Version 1.1.0 Provides the Panel Smooth Transition Regression (PSTR) modelling. The modelling procedure consists

More information

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0 Title Use Image in 'ggplot2' Version 0.1.0 Package ggimage December 5, 2017 Supports image files and graphic objects to be visualized in 'ggplot2' graphic system. Depends R (>= 3.3.0), ggplot2 Imports

More information

Package docxtools. July 6, 2018

Package docxtools. July 6, 2018 Title Tools for R Markdown to Docx Documents Version 0.2.0 Language en-us Package docxtools July 6, 2018 A set of helper functions for using R Markdown to create documents in docx format, especially documents

More information

Package TPD. June 14, 2018

Package TPD. June 14, 2018 Type Package Package TPD June 14, 2018 Title Methods for Measuring Functional Diversity Based on Trait Probability Density Version 1.0.0 Date 2018-06-13 Author Carlos P. Carmona

More information

Package ggloop. October 20, 2016

Package ggloop. October 20, 2016 Package ggloop Type Package Title Create 'ggplot2' Plots in a Loop Version 0.1.0 October 20, 2016 URL https://github.com/seasmith/ggloop BugReports https://github.com/seasmith/ggloop/issues Pass a data

More information

Package shinyaframe. November 26, 2017

Package shinyaframe. November 26, 2017 Type Package Package shinyaframe November 26, 2017 Title 'WebVR' Data Visualizations with 'RStudio Shiny' and 'Mozilla A-Frame' Version 1.0.1 Description Make R data available in Web-based virtual reality

More information

Package bisect. April 16, 2018

Package bisect. April 16, 2018 Package bisect April 16, 2018 Title Estimating Cell Type Composition from Methylation Sequencing Data Version 0.9.0 Maintainer Eyal Fisher Author Eyal Fisher [aut, cre] An implementation

More information

Package gtrendsr. August 4, 2018

Package gtrendsr. August 4, 2018 Type Package Title Perform and Display Google Trends Queries Version 1.4.2 Date 2018-08-03 Package gtrendsr August 4, 2018 An interface for retrieving and displaying the information returned online by

More information

Package simglm. July 25, 2018

Package simglm. July 25, 2018 Type Package Version 0.7.1 License MIT + file LICENSE Package simglm July 25, 2018 Title Simulate Models Based on the Generalized Linear Model Easily simulates regression models, including both simple

More information

Package ezsummary. August 29, 2016

Package ezsummary. August 29, 2016 Type Package Title Generate Data Summary in a Tidy Format Version 0.2.1 Package ezsummary August 29, 2016 Functions that simplify the process of generating print-ready data summary using 'dplyr' syntax.

More information

Package catdap. R topics documented: March 20, 2018

Package catdap. R topics documented: March 20, 2018 Version 1.3.4 Title Categorical Data Analysis Program Package Author The Institute of Statistical Mathematics Package catdap March 20, 2018 Maintainer Masami Saga Depends R (>=

More information

Package bayescl. April 14, 2017

Package bayescl. April 14, 2017 Package bayescl April 14, 2017 Version 0.0.1 Date 2017-04-10 Title Bayesian Inference on a GPU using OpenCL Author Rok Cesnovar, Erik Strumbelj Maintainer Rok Cesnovar Description

More information

Package desplot. R topics documented: April 3, 2018

Package desplot. R topics documented: April 3, 2018 Package desplot April 3, 2018 Title Plotting Field Plans for Agricultural Experiments Version 1.4 Date 2018-04-02 Type Package Description A function for plotting maps of agricultural field experiments

More information

Package ggseas. June 12, 2018

Package ggseas. June 12, 2018 Package ggseas June 12, 2018 Title 'stats' for Seasonal Adjustment on the Fly with 'ggplot2' Version 0.5.4 Maintainer Peter Ellis Provides 'ggplot2' 'stats' that estimate

More information

Package blandr. July 29, 2017

Package blandr. July 29, 2017 Title Bland-Altman Method Comparison Version 0.4.3 Package blandr July 29, 2017 Carries out Bland Altman analyses (also known as a Tukey mean-difference plot) as described by JM Bland and DG Altman in

More information

Package TANDEM. R topics documented: June 15, Type Package

Package TANDEM. R topics documented: June 15, Type Package Type Package Package TANDEM June 15, 2017 Title A Two-Stage Approach to Maximize Interpretability of Drug Response Models Based on Multiple Molecular Data Types Version 1.0.2 Date 2017-04-07 Author Nanne

More information

Package maxnet. R topics documented: February 11, Type Package

Package maxnet. R topics documented: February 11, Type Package Type Package Package maxnet February 11, 2017 Title Fitting 'Maxent' Species Distribution Models with 'glmnet' Version 0.1.2 Date 2017-02-03 Author Steven Phillips Maintainer Steven Phillips

More information