Skip to content

Commit

Permalink
Removed save_kmeans
Browse files Browse the repository at this point in the history
Merge branch 'master' into CRAN

Conflicts:
	DESCRIPTION
	README.md
	build/build_mac_win.sh
	build/remove_screenshots.R
	inst/base/tools/app/about.md
  • Loading branch information
vnijs committed Mar 24, 2015
2 parents ec0291b + 3d62ebc commit f396a1e
Show file tree
Hide file tree
Showing 144 changed files with 754 additions and 564 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: radiant
Title: Business Analytics using R and Shiny
Version: 0.1.75
Date: 2015-3-17
Version: 0.1.83
Date: 2015-3-24
Authors@R: person("Vincent", "Nijs", , "radiant@rady.ucsd.edu", c("aut", "cre"))
Description:
A platform-independent browser-based interface for business analytics in R, based on the Shiny package.
Expand Down Expand Up @@ -31,7 +31,7 @@ Suggests:
rmarkdown (>= 0.4.2),
ggvis (>= 0.4),
testthat (>= 0.9.1)
URL: https://github.com/mostly-harmless/radiant, http://mostly-harmless.github.io/radiant/
BugReports: https://github.com/mostly-harmless/radiant/issues
URL: https://github.com/vnijs/radiant, http://vnijs.github.io/radiant/
BugReports: https://github.com/vnijs/radiant/issues
License: AGPL-3 | file LICENSE
LazyData: true
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ S3method(plot,kmeans_clus)
S3method(plot,mds)
S3method(plot,pmap)
S3method(plot,pre_factor)
S3method(plot,reg_predict)
S3method(plot,regression)
S3method(plot,single_mean)
S3method(plot,single_prop)
Expand Down Expand Up @@ -62,7 +63,6 @@ export(sample_size)
export(sampling)
export(save_factors)
export(save_glm_resid)
export(save_kmeans)
export(save_membership)
export(save_reg_resid)
export(set_class)
Expand Down
6 changes: 3 additions & 3 deletions R/compare_means.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Compare means for two or more variables
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/compare_means.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/compare_means.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param cm_var1 A numeric variable or factor selected for comparison
Expand Down Expand Up @@ -80,7 +80,7 @@ compare_means <- function(dataset, cm_var1, cm_var2,

#' Summary method for the compare_means function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/compare_means.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/compare_means.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{compare_means}}
#' @param ... further arguments passed to or from other methods
Expand Down Expand Up @@ -133,7 +133,7 @@ summary.compare_means <- function(object, ...) {

#' Plot method for the compare_means function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/compare_means.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/compare_means.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{compare_means}}
#' @param cm_plots One or more plots ("bar", "box", or "density")
Expand Down
6 changes: 3 additions & 3 deletions R/compare_props.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Compare proportions across groups
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/compare_props.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/compare_props.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param cp_var1 A grouping variable to split the data for comparisons
Expand Down Expand Up @@ -93,7 +93,7 @@ compare_props <- function(dataset, cp_var1, cp_var2,

#' Summary method for the compare_props function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/compare_props.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/compare_props.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{compare_props}}
#' @param ... further arguments passed to or from other methods
Expand Down Expand Up @@ -144,7 +144,7 @@ summary.compare_props <- function(object, ...) {

#' Plot method for the compare_props function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/compare_props.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/compare_props.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{compare_props}}
#' @param cp_plots One or more plots of proportions or counts ("props" or "counts")
Expand Down
8 changes: 4 additions & 4 deletions R/conjoint.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Conjoint analysis
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param ca_dep_var The dependent variable (e.g., profile ratings)
Expand Down Expand Up @@ -44,7 +44,7 @@ conjoint <- function(dataset, ca_dep_var, ca_indep_var,

#' Summary method for the conjoint function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{conjoint}}
#' @param ca_vif Shows multicollinearity diagnostics.
Expand Down Expand Up @@ -104,7 +104,7 @@ summary.conjoint <- function(object,

#' Plot method for the conjoint function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{conjoint}}
#' @param ca_plots Show either the part-worth ("pw") or importance-weights ("iw") plot
Expand Down Expand Up @@ -164,7 +164,7 @@ plot.conjoint <- function(x,

#' Function to calculate the PW and IW table for conjoint
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint.html} for an example in Radiant
#'
#' @param model Tidied model results (broom) output from \code{\link{conjoint}} passed on by summary.conjoint
#' @param dat Conjoint data
Expand Down
6 changes: 3 additions & 3 deletions R/conjoint_profiles.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Create fractional factorial design for conjoint analysis
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint_profiles.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint_profiles.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#'
Expand Down Expand Up @@ -47,7 +47,7 @@ conjoint_profiles <- function(dataset) {

#' Summary method for the conjoint_profiles function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint_profiles.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint_profiles.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{conjoint_profiles}}
#' @param ... further arguments passed to or from other methods.
Expand Down Expand Up @@ -81,7 +81,7 @@ summary.conjoint_profiles <- function(object, ...) {

#' Function to generate a fractional factorial design
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/conjoint_profiles.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/conjoint_profiles.html} for an example in Radiant
#'
#' @param attr Attributes used to generate profiles
#' @param trial Number of trials that have already been run
Expand Down
6 changes: 3 additions & 3 deletions R/correlation.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Calculate correlations for two or more variables
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/correlation.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/correlation.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param cor_var Variables to include in the analysis
Expand Down Expand Up @@ -34,7 +34,7 @@ correlation <- function(dataset, cor_var,

#' Summary method for the correlation function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/correlation.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/correlation.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{correlation}}
#' @param cor_cutoff Show only corrlations larger than the cutoff in absolute value. Default is a cutoff of 0
Expand Down Expand Up @@ -81,7 +81,7 @@ summary.correlation <- function(object,

#' Plot method for the correlation function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/correlation.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/correlation.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{correlation}}
#' @param ... further arguments passed to or from other methods.
Expand Down
6 changes: 3 additions & 3 deletions R/cross_tabs.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Evaluate associations between categorical variables
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/cross_tabs.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/cross_tabs.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param ct_var1 A categorical variable
Expand Down Expand Up @@ -37,7 +37,7 @@ cross_tabs <- function(dataset, ct_var1, ct_var2,

#' Summary method for the cross_tabs function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/cross_tabs.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/cross_tabs.html} for an example in Radiant

#' @param object Return value from \code{\link{cross_tabs}}
#' @param ct_check Show table(s) for variables ct_var1 and ct_var2. "observed" for the observed frequencies table, "expected" for the expected frequencies table (i.e., frequencies that would be expected if the null hypothesis holds), "chi_sq" for the contribution to the overall chi-squared statistic for each cell (i.e., (o - e)^2 / e), "dev_std" for the standardized differences between the observed and expected frequencies (i.e., (o - e) / sqrt(e)), and "dev_perc" for the percentage difference between the observed and expected frequencies (i.e., (o - e) / e)
Expand Down Expand Up @@ -129,7 +129,7 @@ summary.cross_tabs <- function(object,

#' Plot method for the cross_tabs function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/cross_tabs.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/cross_tabs.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{cross_tabs}}
#' @param ct_check Show plots for variables ct_var1 and ct_var2. "observed" for the observed frequencies table, "expected" for the expected frequencies table (i.e., frequencies that would be expected if the null hypothesis holds), "chi_sq" for the contribution to the overall chi-squared statistic for each cell (i.e., (o - e)^2 / e), "dev_std" for the standardized differences between the observed and expected frequencies (i.e., (o - e) / sqrt(e)), and "dev_perc" for the percentage difference between the observed and expected frequencies (i.e., (o - e) / e)
Expand Down
8 changes: 4 additions & 4 deletions R/full_factor.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Factor analysis (PCA)
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param ff_var Variables to include in the analysis
Expand Down Expand Up @@ -58,7 +58,7 @@ full_factor <- function(dataset, ff_var,

#' Summary method for the full_factor function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{full_factor}}
#' @param ff_cutoff Show only loadings with (absolute) values above ff_cutoff (default = 0)
Expand Down Expand Up @@ -138,7 +138,7 @@ summary.full_factor <- function(object,

#' Plot method for the full_factor function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{full_factor}}
#' @param ... further arguments passed to or from other methods
Expand Down Expand Up @@ -190,7 +190,7 @@ plot.full_factor <- function(x, ...) {

#' Save factor scores to active dataset
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/full_factor.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{full_factor}}
#'
Expand Down
16 changes: 7 additions & 9 deletions R/glm_reg.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Generalized linear models (GLM)
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param glm_dep_var The dependent variable in the logit (probit) model
Expand Down Expand Up @@ -80,7 +80,7 @@ glm_reg <- function(dataset, glm_dep_var, glm_indep_var,

#' Summary method for the glm_reg function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{glm_reg}}
#' @param glm_sum_check Optional output or estimation parameters. "rsme" to show the root mean squared error. "sumsquares" to show the sum of squares table. "vif" to show multicollinearity diagnostics. "confint" to show coefficient confidence interval estimates.
Expand Down Expand Up @@ -230,7 +230,7 @@ summary.glm_reg <- function(object,

#' Plot method for the glm_reg function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{glm_reg}}
#' @param glm_plots Plots to produce for the specified GLM model. Use "" to avoid showing any plots (default). "hist" shows histograms of all variables in the model. "scatter" shows scatter plots (or box plots for factors) for the dependent variable with each independent variable. "dashboard" is a series of four plots used to visually evaluate model. "coef" provides a coefficient plot
Expand Down Expand Up @@ -329,7 +329,7 @@ plot.glm_reg <- function(x,

#' Predict method for the glm_reg function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/glm_reg} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{glm_reg}}
#' @param glm_predict_cmd Generate predictions using a command. For example, `pclass = levels(pclass)` would produce predictions for the different levels of factor `pclass`. To add another variable use a `,` (e.g., `pclass = levels(pclass), age = seq(0,100,20)`)
Expand All @@ -338,9 +338,7 @@ plot.glm_reg <- function(x,
#'
#' @examples
#' result <- glm_reg("titanic", "survived", c("pclass","sex"), glm_levels = "Yes")
#' pred <- predict(result, glm_predict_cmd = "pclass = levels(pclass)")
#' str(pred)
#' names(pred)
#' predict(result, glm_predict_cmd = "pclass = levels(pclass)")
#' predict(result, glm_predict_cmd = "sex = c('male','female')")
#'
#' @seealso \code{\link{glm_reg}} to generate the result
Expand Down Expand Up @@ -457,7 +455,7 @@ predict.glm_reg <- function(object,

#' Plot method for the predict.glm_reg function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/glm_reg} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{predict.glm_reg}}.
#' @param glm_xvar Variable to display along the X-axis of the plot
Expand Down Expand Up @@ -527,7 +525,7 @@ plot.glm_predict <- function(x,

#' Save residuals generated in the glm_reg function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/quant/glm_reg.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{glm_reg}}
#'
Expand Down
6 changes: 3 additions & 3 deletions R/hier_clus.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Hierarchical cluster analysis
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/hier_clus.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/hier_clus.html} for an example in Radiant
#'
#' @param dataset Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
#' @param hc_vars Vector of variables to include in the analysis
Expand Down Expand Up @@ -36,7 +36,7 @@ hier_clus <- function(dataset, hc_vars,

#' Summary method for the hier_clus function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/hier_clus.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/hier_clus.html} for an example in Radiant
#'
#' @param object Return value from \code{\link{hier_clus}}
#' @param ... further arguments passed to or from other methods
Expand All @@ -63,7 +63,7 @@ summary.hier_clus <- function(object, ...) {

#' Plot method for the hier_clus function
#'
#' @details See \url{http://mostly-harmless.github.io/radiant/marketing/hier_clus.html} for an example in Radiant
#' @details See \url{http://vnijs.github.io/radiant/marketing/hier_clus.html} for an example in Radiant
#'
#' @param x Return value from \code{\link{hier_clus}}
#' @param hc_plots Plots to return. "diff" shows the percentage change in within-cluster heterogeneity as respondents are group into different number of clusters, "dendro" shows the dendrogram, "scree" shows a scree plot of within-cluster heterogeneity
Expand Down
Loading

0 comments on commit f396a1e

Please sign in to comment.