-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
853893f
commit 5ccd258
Showing
19 changed files
with
263 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
^makefile$ | ||
^adea\.Rcheck$ | ||
^doc$ | ||
^Meta$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
Package: adea | ||
Type: Package | ||
Depends: Benchmarking, combinat, lpSolveAPI, methods, R (>= 3.5.0), | ||
rmarkdown | ||
Imports: knitr | ||
Depends: | ||
Benchmarking, | ||
combinat, | ||
lpSolveAPI, | ||
methods, | ||
R (>= 3.5.0), | ||
rmarkdown | ||
Imports: | ||
knitr | ||
VignetteBuilder: knitr | ||
Version: 1.2.1 | ||
Date: 2021-12-13 | ||
Version: 1.3.1 | ||
Date: 2022-02-09 | ||
ByteCompile: true | ||
Title: Alternate DEA Package | ||
Authors@R: c(person('Fernando', 'Fernandez-Palacin', email = '[email protected]', role = 'aut', comment = c(ORCID='0000-0002-3525-2924')), person('Manuel', 'Munoz-Marquez', email = '[email protected]', role = c('aut', 'cre'), comment = c(ORCID = '0000-0003-4157-8784'))) | ||
|
@@ -15,12 +21,7 @@ Description: The meaning of adea is "alternate DEA". This package is devoted to | |
<https://knuth.uca.es/shiny/DEA/>. | ||
License: GPL (>= 3) | ||
RoxygenNote: 7.1.2 | ||
Suggests: testthat (>= 3.0.0) | ||
Suggests: | ||
testthat (>= 3.0.0) | ||
Config/testthat/edition: 3 | ||
Config/testthat/parallel: true | ||
NeedsCompilation: no | ||
Packaged: 2021-12-13 18:05:30 UTC; mmarquez | ||
Author: Fernando Fernandez-Palacin [aut] | ||
(<https://orcid.org/0000-0002-3525-2924>), | ||
Manuel Munoz-Marquez [aut, cre] | ||
(<https://orcid.org/0000-0003-4157-8784>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#' ADEA plot of standarized virtual input and virtual output | ||
#' | ||
#' @aliases plot plot,adea-method | ||
#' @docType methods | ||
#' @keywords DEA ADEA plot | ||
#' | ||
#' @param x ADEA object to be plotted | ||
#' @param main if not null then it is used as main in plot. | ||
#' Its default value is the translation of "ADEA efficient frontier". | ||
#' If the adea x has name it is added to the previous value. | ||
#' @param xlab if not null then it is used as xlab in plot. | ||
#' Its default value is the translation of "Virtual input". | ||
#' @param ylab if not null then it is used as ylab in plot. | ||
#' Its default value is the translation of "Virtual output". | ||
#' @param labels if not null then a vector of labels for the DMUs points | ||
#' @param labels.pos position for the labels in the plot. Its default value is 4. | ||
#' @param lcol the color to use to draw the line. | ||
#' Its default value is black. | ||
#' @param ... Adittional parameters to plot | ||
#' @return A list with vinput and voutput values. | ||
#' These values are provided mainly for use with the function identify. | ||
#' | ||
#' @details | ||
#' This function plots virtual input and virtual outpus in an ADEA model. | ||
#' The virtual input and output vectors are computed as a weighted sum of the inputs and outputs. | ||
#' In addition, it is imposed that the sum of the weights be the unit. | ||
#' | ||
#' For more information on this calculation process see the references in \cite{adea-package}. | ||
#' | ||
#' For the calculations of virtual input and virtual output, the weights generated by ADEA have been used, but they are the same as those that would be obtained using standard DEA. | ||
#' | ||
#' @examples | ||
#' data("cardealers4") | ||
#' input = cardealers4[, c('Employees', 'Depreciation')] | ||
#' output = cardealers4[, c('CarsSold', 'WorkOrders')] | ||
#' adea <- adea(input = input, output = output) | ||
#' plot(adea) | ||
#' @seealso \code{\link{adea}} | ||
#' @export | ||
plot.adea <- function(x, main = NULL, xlab = NULL, ylab= NULL, labels = NULL, labels.pos = 4, lcol = "black", ...) { | ||
if (is.null(main)) main <- gettext("ADEA efficient frontier") | ||
if (x$name != "") main <- paste(main, gettext("for model:"), x$name) | ||
if (is.null(xlab)) xlab <- gettext("Virtual input") | ||
if (is.null(ylab)) ylab <- gettext("Virtual output") | ||
plot(x$vinput, x$voutput, main = main, xlab = xlab, ylab = ylab, ...) | ||
abline(a = 0, b = 1, col = lcol) | ||
if (!is.null(labels)) text(x$vinput, x$voutput, labels = labels, pos = labels.pos) | ||
invisible(list(vinput = x$vinput, voutput = x$voutput)) | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package := adea | ||
version := 1.3.1 | ||
R := $(wildcard R/*.R) | ||
Rmd := $(wildcard vignettes/*.Rmd) | ||
html := $(patsubst vignettes/%.Rmd,inst/doc/%.html,$(Rmd)) | ||
|
||
$(package).Rcheck: $(package)_$(version).tar.gz | ||
R CMD check --as-cran $(package)_$(version).tar.gz | ||
$(package)_$(version).tar.gz: $(R) $(Rmd) $(html) ChangeLog DESCRIPTION inst/po/es/LC_MESSAGES/R-$(package).mo po/R-$(package)-es.po po/R-$(package).pot | ||
R -e "library('roxygen2'); roxygenize('.')" | ||
R CMD build --no-build-vignettes . | ||
R CMD INSTALL $(package)_$(version).tar.gz | ||
inst/po/es/LC_MESSAGES/R-$(package).mo: po/R-$(package)-es.po | ||
msgfmt -c -o inst/po/es/LC_MESSAGES/R-$(package).mo po/R-$(package)-es.po | ||
po/R-$(package)-es.po: $(R) po/R-$(package).pot | ||
poedit po/R-$(package)-es.po | ||
po/R-$(package).pot: $(R) | ||
# This target builds the pot file and update any R-$(package)-lang.po file under po dir | ||
R -e "library('tools'); update_pkg_po('.')" | ||
touch po/R-$(package).pot | ||
inst/doc/%.html: $(R) $(Rmd) | ||
make vignettes | ||
vignettes: $(R) $(Rmd) | ||
R -e "devtools::build_vignettes('.', clean = FALSE, install = FALSE)" | ||
mv --force doc/* inst/doc/ | ||
rmdir doc |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.