diff --git a/NEWS.md b/NEWS.md index d970c0c..ef215a6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -47,3 +47,9 @@ Minor issues: * Allowed treat_outliers() to route parameters through to stats::quantile() (needed for type parameter) * Changed NA handling in "prepare_graph" type functions + + +# ExPanDaR 0.2.0 + +* Initial version on CRAN + diff --git a/README.Rmd b/README.Rmd index 31e60f5..23e7f90 100644 --- a/README.Rmd +++ b/README.Rmd @@ -44,16 +44,6 @@ If you are in for the full treat and want to test ExPanD from within R, run the in your R session to install the ExPanDaR package from CRAN. ```{r, eval=FALSE} -# Include the following to add Bioconductor to your repositories -# when you have problems installing the package 'CodeDepends' -# that depends on 'graph' which is only available in the -# Bioconductor repository -setRepositories(ind=1:2) - -# Include the following if you want to use the data file upload -# dialog in ExPanD() -install.packages("rio") - install.packages("ExPanDaR") library(ExPanDaR) ```` @@ -95,7 +85,6 @@ ExPanD(df = russell_3000, ## Further Information -For further information, please refer to the articles and function call references of the package documentation, available [here](https://joachim-gassen.github.io/ExPanDaR) for the CRAN version and -[here](https://joachim-gassen.github.io/ExPanDaR/dev) for the current development version. +For further information, please refer to the articles and function call references of the package documentation, available [here](https://joachim-gassen.github.io/ExPanDaR). Enjoy! diff --git a/README.md b/README.md index 8106a93..e369e09 100644 --- a/README.md +++ b/README.md @@ -30,16 +30,6 @@ Installation If you are in for the full treat and want to test ExPanD from within R, run the following in your R session to install the ExPanDaR package from CRAN. ``` r -# Include the following to add Bioconductor to your repositories -# when you have problems installing the package 'CodeDepends' -# that depends on 'graph' which is only available in the -# Bioconductor repository -setRepositories(ind=1:2) - -# Include the following if you want to use the data file upload -# dialog in ExPanD() -install.packages("rio") - install.packages("ExPanDaR") library(ExPanDaR) ``` @@ -81,6 +71,6 @@ ExPanD(df = russell_3000, Further Information ------------------- -For further information, please refer to the articles and function call references of the package documentation, available [here](https://joachim-gassen.github.io/ExPanDaR) for the CRAN version and [here](https://joachim-gassen.github.io/ExPanDaR/dev) for the current development version. +For further information, please refer to the articles and function call references of the package documentation, available [here](https://joachim-gassen.github.io/ExPanDaR). Enjoy! diff --git a/_pkgdown.yml b/_pkgdown.yml index 8afb37c..dbf73c3 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -2,7 +2,7 @@ template: params: ganalytics: UA-119053376-1 development: - mode: devel + mode: release navbar: structure: left: diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 46a407d..7030f2e 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -68,7 +68,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -97,6 +97,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/articles/ExPanDaR-functions.html b/docs/articles/ExPanDaR-functions.html index bac8cfa..b166e90 100644 --- a/docs/articles/ExPanDaR-functions.html +++ b/docs/articles/ExPanDaR-functions.html @@ -36,7 +36,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -45,7 +45,7 @@
  • - +
  • @@ -54,7 +54,7 @@
  • +
  • + Changelog
  • + +
  • + Changelog
  • diff --git a/docs/articles/use_ExPanD.html b/docs/articles/use_ExPanD.html index 14ba4c9..61ed518 100644 --- a/docs/articles/use_ExPanD.html +++ b/docs/articles/use_ExPanD.html @@ -36,7 +36,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -65,6 +65,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • + +
  • + Changelog
  • diff --git a/docs/favicon.ico b/docs/favicon.ico index 1c960b8..f4092b5 100644 Binary files a/docs/favicon.ico and b/docs/favicon.ico differ diff --git a/docs/index.html b/docs/index.html index 143d60f..5e6b303 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,11 +11,11 @@ @@ -42,7 +42,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -51,7 +51,7 @@
  • - +
  • @@ -60,7 +60,7 @@
  • +
  • + Changelog
  • + +
  • + Changelog
  • @@ -140,10 +143,11 @@

    Explore Panel Data (ExPanD)

    title = "ExPanD - Explore panel data interactively", abstract = NULL, df_name = deparse(substitute(df)), long_def = TRUE, factor_cutoff = 10L, components = c(bar_chart = TRUE, missing_values = TRUE, descriptive_table = - TRUE, by_group_bar_graph = TRUE, histogram = TRUE, ext_obs = TRUE, trend_graph - = TRUE, quantile_trend_graph = TRUE, corrplot = TRUE, scatter_plot = TRUE, - regression = TRUE), store_encrypted = FALSE, - key_phrase = "What a wonderful key", debug = FALSE, ...) + TRUE, histogram = TRUE, ext_obs = TRUE, by_group_bar_graph = TRUE, + by_group_violin_graph = TRUE, trend_graph = TRUE, quantile_trend_graph = TRUE, + corrplot = TRUE, scatter_plot = TRUE, regression = TRUE), + store_encrypted = FALSE, key_phrase = "What a wonderful key", + debug = FALSE, ...)

    Arguments

    @@ -165,6 +169,9 @@

    Arg

    @@ -225,9 +232,11 @@

    Arg

    - + @@ -257,7 +266,7 @@

    Arg

    Details

    If you start ExPanD without any options, it will start with an upload -dialog so that the the user (e.g., you) can upload a data file +dialog so that the user (e.g., you) can upload a data file for analysis. Supported formats are as provided by the rio package.

    If you provide variable definitions in df_def and/or var_def, @@ -306,7 +315,9 @@

    Examp ExPanD(russell_3000, c("coid", "coname"), "period") ExPanD(russell_3000, df_def = russell_3000_data_def) ExPanD(russell_3000, df_def = russell_3000_data_def, - components = c(T, F, T, F, F, F, F, F, F, T, T)) + components = c(ext_obs = T, descriptive_table = T, regression = T)) + ExPanD(russell_3000, df_def = russell_3000_data_def, + components = c(missing_values = F, by_group_violin_graph = F)) data(ExPanD_config_russell_3000) ExPanD(df = russell_3000, df_def = russell_3000_data_def, config_list = ExPanD_config_russell_3000) diff --git a/docs/reference/ExPanD_config_russell_3000.html b/docs/reference/ExPanD_config_russell_3000.html index d60439b..d63f364 100644 --- a/docs/reference/ExPanD_config_russell_3000.html +++ b/docs/reference/ExPanD_config_russell_3000.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/ExPanD_config_worldbank.html b/docs/reference/ExPanD_config_worldbank.html index 1dedc96..3e5d20c 100644 --- a/docs/reference/ExPanD_config_worldbank.html +++ b/docs/reference/ExPanD_config_worldbank.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/ExPanDaR.html b/docs/reference/ExPanDaR.html index d551a55..8fe8884 100644 --- a/docs/reference/ExPanDaR.html +++ b/docs/reference/ExPanDaR.html @@ -72,7 +72,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -101,6 +101,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/index.html b/docs/reference/index.html index 8ef580c..49e9f7b 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -68,7 +68,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -97,6 +97,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • @@ -166,21 +169,27 @@

    prepare_ext_obs_table()

    +

    prepare_descriptive_table()

    -

    + - + + + + +

    A character scalar identifying the name of the variable that identifies the time series in your data. The according variable needs to be coercible to an ordered vector. +If you provide a time series indicator that already is an ordered vector, +ExPanD will verify that it has the same levels for each data frame +and throw an error otherwise. Can only be NULL if df_def is provided instead.

    components

    A logical vector indicating which reports you want -ExPanD to generate. If specified, the vector does not have to be named but needs -to be of correct length.

    A logical vector indicating the reports that you want +ExPanD to generate and their order. See the function head of ExpanD +for the list of available reports. By default, all components are reported. +You can also exclude selected components from the standard order by setting +then to FALSE.

    store_encrypted

    Prepares a Table Displaying Extreme Observations

    Prepares a Table of Descriptive Statistics

    -

    prepare_descriptive_table()

    +

    prepare_ext_obs_table()

    Prepares a Table of Descriptive Statistics

    Prepares a Table Displaying Extreme Observations

    prepare_by_group_bar_graph()

    Prepares a by Group Bar Graph

    +

    prepare_by_group_violin_graph()

    +

    Prepares a by Group Violin Graph

    diff --git a/docs/reference/prepare_by_group_bar_graph-1.png b/docs/reference/prepare_by_group_bar_graph-1.png index 9ae0a45..5d7e923 100644 Binary files a/docs/reference/prepare_by_group_bar_graph-1.png and b/docs/reference/prepare_by_group_bar_graph-1.png differ diff --git a/docs/reference/prepare_by_group_bar_graph.html b/docs/reference/prepare_by_group_bar_graph.html index 1c7ce39..3a83922 100644 --- a/docs/reference/prepare_by_group_bar_graph.html +++ b/docs/reference/prepare_by_group_bar_graph.html @@ -72,7 +72,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -101,6 +101,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_by_group_violin_graph-1.png b/docs/reference/prepare_by_group_violin_graph-1.png new file mode 100644 index 0000000..8e999b1 Binary files /dev/null and b/docs/reference/prepare_by_group_violin_graph-1.png differ diff --git a/docs/reference/prepare_by_group_violin_graph.html b/docs/reference/prepare_by_group_violin_graph.html new file mode 100644 index 0000000..43b917f --- /dev/null +++ b/docs/reference/prepare_by_group_violin_graph.html @@ -0,0 +1,216 @@ + + + + + + + + +Prepares a by Group Violin Graph — prepare_by_group_violin_graph • ExPanDaR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + +
    + +

    Reads a data frame containing a grouping factor and a numerical variable +and plots a series of violin graphs by the grouping factor.

    + +
    + +
    prepare_by_group_violin_graph(df, by_var, var, order_by_mean = FALSE,
    +  group_on_y = TRUE, ...)
    + +

    Arguments

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    df

    Data frame containing the grouping factor and the numerical variable +to be plotted

    by_var

    a string containing the column name of the grouping factor

    var

    a string containing the column name of the numerical variable

    order_by_mean

    a logical value indicating whether you want your +violins to be ordered by group means (defaults to FALSE)

    group_on_y

    a logical value indicating whether you want your +violins to be oriented horizontally (defaults to TRUE)

    ...

    additional parameters that are passed to +geom_violin

    + +

    Value

    + +

    The plot as returned by ggplot2

    + + +

    Examples

    +
    data(russell_3000) +df <- treat_outliers(russell_3000) +prepare_by_group_violin_graph(df, "sector", "nioa")
    +
    + +
    + +
    + + +
    +

    Site built with pkgdown.

    +
    + +
    +
    + + + + + + diff --git a/docs/reference/prepare_correlation_graph-1.png b/docs/reference/prepare_correlation_graph-1.png index 37ccc60..089319a 100644 Binary files a/docs/reference/prepare_correlation_graph-1.png and b/docs/reference/prepare_correlation_graph-1.png differ diff --git a/docs/reference/prepare_correlation_graph.html b/docs/reference/prepare_correlation_graph.html index 1ee38b1..4317f12 100644 --- a/docs/reference/prepare_correlation_graph.html +++ b/docs/reference/prepare_correlation_graph.html @@ -72,7 +72,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -101,6 +101,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_correlation_table.html b/docs/reference/prepare_correlation_table.html index c0aef95..0ef1f07 100644 --- a/docs/reference/prepare_correlation_table.html +++ b/docs/reference/prepare_correlation_table.html @@ -71,7 +71,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -100,6 +100,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_descriptive_table.html b/docs/reference/prepare_descriptive_table.html index 2349710..2c149cb 100644 --- a/docs/reference/prepare_descriptive_table.html +++ b/docs/reference/prepare_descriptive_table.html @@ -73,7 +73,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -102,6 +102,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_ext_obs_table.html b/docs/reference/prepare_ext_obs_table.html index d072d81..5cb4e94 100644 --- a/docs/reference/prepare_ext_obs_table.html +++ b/docs/reference/prepare_ext_obs_table.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_missing_values_graph-1.png b/docs/reference/prepare_missing_values_graph-1.png index 27cde21..152581c 100644 Binary files a/docs/reference/prepare_missing_values_graph-1.png and b/docs/reference/prepare_missing_values_graph-1.png differ diff --git a/docs/reference/prepare_missing_values_graph.html b/docs/reference/prepare_missing_values_graph.html index 7851d6d..dfc84bd 100644 --- a/docs/reference/prepare_missing_values_graph.html +++ b/docs/reference/prepare_missing_values_graph.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_quantile_trend_graph-1.png b/docs/reference/prepare_quantile_trend_graph-1.png index 5189701..c2c10c4 100644 Binary files a/docs/reference/prepare_quantile_trend_graph-1.png and b/docs/reference/prepare_quantile_trend_graph-1.png differ diff --git a/docs/reference/prepare_quantile_trend_graph-2.png b/docs/reference/prepare_quantile_trend_graph-2.png index 285973d..8d63574 100644 Binary files a/docs/reference/prepare_quantile_trend_graph-2.png and b/docs/reference/prepare_quantile_trend_graph-2.png differ diff --git a/docs/reference/prepare_quantile_trend_graph.html b/docs/reference/prepare_quantile_trend_graph.html index 7daa98b..6f16699 100644 --- a/docs/reference/prepare_quantile_trend_graph.html +++ b/docs/reference/prepare_quantile_trend_graph.html @@ -72,7 +72,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -101,6 +101,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_regression_table.html b/docs/reference/prepare_regression_table.html index ad74979..e75231b 100644 --- a/docs/reference/prepare_regression_table.html +++ b/docs/reference/prepare_regression_table.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • @@ -134,8 +137,8 @@

    Prepares a Regression Table

    prepare_regression_table(df, dvs, idvs, feffects = rep("", length(dvs)),
    -  clusters = rep("", length(dvs)), byvar = "", format = "html",
    -  drop_underscore = NULL)
    + clusters = rep("", length(dvs)), models = rep("auto", length(dvs)), + byvar = "", format = "html")

    Arguments

    @@ -146,19 +149,23 @@

    Arg

    - + - + - + - + + + + + @@ -168,11 +175,6 @@

    Arg

    - - - -
    dvs

    A character vector containing the dependent variable(s).

    A character vector containing the variable names for the dependent variable(s).

    idvs

    A character vector or a a list of character vectors containing the independent variables.

    A character vector or a a list of character vectors containing the variable names of the independent variables.

    feffects

    A character vector or a a list of character vectors containing the fixed effects.

    A character vector or a a list of character vectors containing the variable names of the fixed effects.

    clusters

    A character vector or a a list of character vectors containing the cluster variables.

    A character vector or a a list of character vectors containing the variable names of the cluster variables.

    models

    A character vector indicating the model types to be estimated ('ols', 'logit', or 'auto')

    byvarformat

    A character scalar that is passed on stargazer as type to determine the presentation format ("html", "text", or "latex").

    drop_underscore

    A quick'n'dirty hack to address a bug in stargazer that triggers it to choke on underscores in variable names. -If not NULL, all underscores in variable names will be replaced by the given string.

    @@ -187,9 +189,13 @@

    Value

    Details

    This is a wrapper function calling the stargazer package. Depending on whether the dependent variable - is numeric or a factor with two levels, the models are estimated - using felm or glm (with family = binomial(link="logit")). - Fixed effects and clustered standard errors are only supported with continuous dependent variables. + is numeric, logical or a factor with two levels, the models are estimated + using felm (for numeric dependent variables) + or glm (with family = binomial(link="logit")) (for two-level factors or logical variables). + You can override this behavior by specifying the model with the models parameter. + Multinomial logit models are not supported. + For glm, clustered standard errors are estimated using + cluster.vcov. If run with byvar, only levels that have more observations than coefficients are estimated.

    @@ -224,13 +230,14 @@

    Examp #> [18] " (0.125) (0.060) (0.075) " #> [19] " " #> [20] "---------------------------------------------------------" -#> [21] "Fixed effects year year year year " -#> [22] "Std. errors clustered year year year year " -#> [23] "Observations 1,860 1,860 1,860 1,860 " -#> [24] "R2 0.994 0.995 0.981 0.989 " -#> [25] "Adjusted R2 0.994 0.995 0.981 0.989 " -#> [26] "=========================================================" -#> [27] "Note: *p<0.1; **p<0.05; ***p<0.01"
    t <- prepare_regression_table(df, "DAX", c("SMI", "CAC", "FTSE"), byvar="year", format = "text") +#> [21] "Estimator ols ols ols ols " +#> [22] "Fixed effects year year year year " +#> [23] "Std. errors clustered year year year year " +#> [24] "Observations 1,860 1,860 1,860 1,860 " +#> [25] "R2 0.994 0.995 0.981 0.989 " +#> [26] "Adjusted R2 0.994 0.995 0.981 0.989 " +#> [27] "=========================================================" +#> [28] "Note: *p<0.1; **p<0.05; ***p<0.01"
    t <- prepare_regression_table(df, "DAX", c("SMI", "CAC", "FTSE"), byvar="year", format = "text") print(t$table)
    #> [1] "" #> [2] "==================================================================================================================================" #> [3] " Dependent variable: " @@ -252,13 +259,14 @@

    Examp #> [19] " (44.666) (72.607) (72.806) (56.941) (65.786) (105.476) (68.069) (110.585) (174.146) " #> [20] " " #> [21] "----------------------------------------------------------------------------------------------------------------------------------" -#> [22] "Fixed effects None None None None None None None None None " -#> [23] "Std. errors clustered No No No No No No No No No " -#> [24] "Observations 1,860 131 260 260 260 260 260 260 169 " -#> [25] "R2 0.990 0.669 0.850 0.973 0.560 0.720 0.932 0.964 0.978 " -#> [26] "Adjusted R2 0.990 0.661 0.848 0.973 0.555 0.717 0.931 0.964 0.978 " -#> [27] "==================================================================================================================================" -#> [28] "Note: *p<0.1; **p<0.05; ***p<0.01"

    +#> [22] "Estimator ols ols ols ols ols ols ols ols ols " +#> [23] "Fixed effects None None None None None None None None None " +#> [24] "Std. errors clustered No No No No No No No No No " +#> [25] "Observations 1,860 131 260 260 260 260 260 260 169 " +#> [26] "R2 0.990 0.669 0.850 0.973 0.560 0.720 0.932 0.964 0.978 " +#> [27] "Adjusted R2 0.990 0.661 0.848 0.973 0.555 0.717 0.931 0.964 0.978 " +#> [28] "==================================================================================================================================" +#> [29] "Note: *p<0.1; **p<0.05; ***p<0.01" @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/prepare_trend_graph-1.png b/docs/reference/prepare_trend_graph-1.png index d8f7e18..0fc04d8 100644 Binary files a/docs/reference/prepare_trend_graph-1.png and b/docs/reference/prepare_trend_graph-1.png differ diff --git a/docs/reference/prepare_trend_graph.html b/docs/reference/prepare_trend_graph.html index 10edb69..57f4629 100644 --- a/docs/reference/prepare_trend_graph.html +++ b/docs/reference/prepare_trend_graph.html @@ -71,7 +71,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -100,6 +100,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/russell_3000-1.png b/docs/reference/russell_3000-1.png index 27cde21..152581c 100644 Binary files a/docs/reference/russell_3000-1.png and b/docs/reference/russell_3000-1.png differ diff --git a/docs/reference/russell_3000.html b/docs/reference/russell_3000.html index 0a4f05f..258c8fe 100644 --- a/docs/reference/russell_3000.html +++ b/docs/reference/russell_3000.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/russell_3000_data_def.html b/docs/reference/russell_3000_data_def.html index f1023bb..a86c57e 100644 --- a/docs/reference/russell_3000_data_def.html +++ b/docs/reference/russell_3000_data_def.html @@ -72,7 +72,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -101,6 +101,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/treat_outliers-1.png b/docs/reference/treat_outliers-1.png index f57b0ae..8e0bb99 100644 Binary files a/docs/reference/treat_outliers-1.png and b/docs/reference/treat_outliers-1.png differ diff --git a/docs/reference/treat_outliers.html b/docs/reference/treat_outliers.html index 5a1c69d..6f85c16 100644 --- a/docs/reference/treat_outliers.html +++ b/docs/reference/treat_outliers.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • @@ -133,7 +136,7 @@

    Treats Outliers in Numerical Data

    -
    treat_outliers(x, percentile = 0.01, truncate = FALSE, by = NULL)
    +
    treat_outliers(x, percentile = 0.01, truncate = FALSE, by = NULL, ...)

    Arguments

    @@ -166,6 +169,10 @@

    Arg If provided, the resulting vector must not contain NAs and needs to be such so that length(byvec) == nrows(as.matrix(x)).

    +

    + + +
    ...

    Additional parameters forwarded to quantile (notably, type)

    Value

    @@ -177,7 +184,7 @@

    Value

    Details

    All members of the numerical matrix are checked for finiteness and are - set to NA if they are not finite.

    + set to NA if they are not finite. NAs are removed when calculating the outlier cut-offs.

    Examples

    @@ -193,6 +200,14 @@

    Examp #> [26] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 #> [51] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 #> [76] 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 NA NA NA NA NA
    +# When you like the percentiles calculated like STATA's summary or pctile: +treat_outliers(seq(1:100), 0.05, type = 2)
    #> [1] 5.5 5.5 5.5 5.5 5.5 6.0 7.0 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 +#> [16] 16.0 17.0 18.0 19.0 20.0 21.0 22.0 23.0 24.0 25.0 26.0 27.0 28.0 29.0 30.0 +#> [31] 31.0 32.0 33.0 34.0 35.0 36.0 37.0 38.0 39.0 40.0 41.0 42.0 43.0 44.0 45.0 +#> [46] 46.0 47.0 48.0 49.0 50.0 51.0 52.0 53.0 54.0 55.0 56.0 57.0 58.0 59.0 60.0 +#> [61] 61.0 62.0 63.0 64.0 65.0 66.0 67.0 68.0 69.0 70.0 71.0 72.0 73.0 74.0 75.0 +#> [76] 76.0 77.0 78.0 79.0 80.0 81.0 82.0 83.0 84.0 85.0 86.0 87.0 88.0 89.0 90.0 +#> [91] 91.0 92.0 93.0 94.0 95.0 95.5 95.5 95.5 95.5 95.5
    df <- data.frame(a = seq(1:1000), b = rnorm(1000), c = sample(LETTERS[1:5], 1000, replace=TRUE)) winsorized_df <- treat_outliers(df) summary(df)
    #> a b c diff --git a/docs/reference/worldbank-1.png b/docs/reference/worldbank-1.png index 04ff96a..6256819 100644 Binary files a/docs/reference/worldbank-1.png and b/docs/reference/worldbank-1.png differ diff --git a/docs/reference/worldbank.html b/docs/reference/worldbank.html index aed5a66..add3de3 100644 --- a/docs/reference/worldbank.html +++ b/docs/reference/worldbank.html @@ -70,7 +70,7 @@ ExPanDaR - 0.2.0 + 0.3.0
    @@ -99,6 +99,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/worldbank_data_def.html b/docs/reference/worldbank_data_def.html index a4a1627..97b382c 100644 --- a/docs/reference/worldbank_data_def.html +++ b/docs/reference/worldbank_data_def.html @@ -72,7 +72,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -101,6 +101,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/docs/reference/worldbank_var_def.html b/docs/reference/worldbank_var_def.html index cc4c2db..574f358 100644 --- a/docs/reference/worldbank_var_def.html +++ b/docs/reference/worldbank_var_def.html @@ -71,7 +71,7 @@ ExPanDaR - 0.2.0 + 0.3.0 @@ -100,6 +100,9 @@ Using ExPanD for Panel Data Exploration + +
  • + Changelog
  • diff --git a/index.Rmd b/index.Rmd index 5585d16..14f3c4a 100644 --- a/index.Rmd +++ b/index.Rmd @@ -46,16 +46,6 @@ If you are in for the full treat and want to test ExPanD from within R, run the in your R session to install the ExPanDaR package from CRAN. ```{r, eval=FALSE} -# Include the following to add Bioconductor to your repositories -# when you have problems installing the package 'CodeDepends' -# that depends on 'graph' which is only available in the -# Bioconductor repository -setRepositories(ind=1:2) - -# Include the following if you want to use the data file upload -# dialog in ExPanD() -install.packages("rio") - install.packages("ExPanDaR") library(ExPanDaR) ````