Skip to content

Commit

Permalink
typos in help-pages; encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhard-da committed Dec 18, 2018
1 parent 1d7fecb commit 1c65c89
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,6 @@ Collate:
'maG.R'
'sdcApp.R'
'show_sdcMicroObj.R'
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1
VignetteBuilder: knitr
Encoding: UTF-8
14 changes: 7 additions & 7 deletions R/addNoise.r
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
#' Method \sQuote{additive} adds noise completely at random to each variable
#' depending on its size and standard deviation. \sQuote{correlated} and
#' method \sQuote{correlated2} adds noise and preserves the covariances as
#' descriped in R. Brand (2001) or in the reference given below. Method
#' \sQuote{restr} takes the sample size into account when adding noise. Method
#' described in R. Brand (2001) or in the reference given below. Method
#' \sQuote{restr} takes the sample size into account when adding noise. Method
#' \sQuote{ROMM} is an implementation of the algorithm ROMM (Random
#' Orthogonalized Matrix Masking) (Fienberg, 2004). Method \sQuote{outdect}
#' adds noise only to outliers. The outliers are idedentified with univariate
#' and robust multivariate procedures based on a robust mahalanobis distancs
#' adds noise only to outliers. The outliers are identified with univariate
#' and robust multivariate procedures based on a robust mahalanobis distances
#' calculated by the MCD estimator.
#'
#' @name addNoise
Expand All @@ -36,7 +36,7 @@
#' \item{noise}{amount of noise}
#' @author Matthias Templ and Bernhard Meindl
#' @seealso \code{\link{sdcMicroObj-class}}, \code{\link{summary.micro}}
#' @references
#' @references
#' Domingo-Ferrer, J. and Sebe, F. and Castella, J., \dQuote{On the
#' security of noise addition for privacy in statistical databases}, Lecture
#' Notes in Computer Science, vol. 3050, pp. 149-161, 2004. ISSN 0302-9743.
Expand Down Expand Up @@ -65,7 +65,7 @@
#' Templ, M. and Meindl, B. and Kowarik, A.: \emph{Statistical Disclosure Control for
#' Micro-Data Using the R Package sdcMicro}, Journal of Statistical Software,
#' 67 (4), 1--36, 2015. \doi{10.18637/jss.v067.i04}
#'
#'
#' Templ, M. Statistical Disclosure Control for Microdata: Methods and Applications in R.
#' \emph{Springer International Publishing}, 287 pages, 2017. ISBN 978-3-319-50272-4.
#' \doi{10.1007/978-3-319-50272-4}
Expand Down Expand Up @@ -144,7 +144,7 @@ addNoiseWORK <- function(x, noise=150, method="additive", p=0.001, delta=0.1) {
x + noise
})
x
}
}
addNoise_correlated <- function(x, noise) {
if (ncol(x) < 2) {
stop("'addNoise_correlated' works only for >= 2 variables!\n")
Expand Down
8 changes: 4 additions & 4 deletions man/addNoise.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c65c89

Please sign in to comment.