Skip to content

Commit

Permalink
Fix URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Aug 29, 2020
1 parent 9ad8dc2 commit 70082f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/addNAstr.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' addNAstr(f)
#' addNAstr(f, value="missing")
#' addNAstr(f, value=NULL)
#' @source Adapted from James (\url{http://stackoverflow.com/a/5817181})
#' @source Adapted from James (\url{https://stackoverflow.com/a/5817181})
#' by Joseph Larmarange <joseph@@larmarange.net>
#' @export addNAstr

Expand Down
6 changes: 3 additions & 3 deletions R/datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @docType data
#' @keywords datasets
#' @format A data frame with 2000 rows and 20 variables
#' @source \url{http://www.insee.fr/fr/themes/detail.asp?ref_id=fd-HDV03}
#' @source \url{https://www.insee.fr/fr/statistiques/2532244}
#' @name hdv2003
NULL

Expand All @@ -17,7 +17,7 @@ NULL
#' @docType data
#' @keywords datasets
#' @format A data frame with 301 rows and 21 variables
#' @source \url{http://www.insee.fr/fr/bases-de-donnees/default.asp?page=recensements.htm}
#' @source \url{https://www.insee.fr/fr/information/2008354}
#' @name rp99
NULL

Expand All @@ -28,7 +28,7 @@ NULL
#' @docType data
#' @keywords datasets
#' @format A data frame with 5170 rows and 60 variables
#' @source \url{http://www.insee.fr/fr/bases-de-donnees/default.asp?page=recensements.htm}
#' @source \url{https://www.insee.fr/fr/information/2008354}
#' @name rp2012
NULL

Expand Down
4 changes: 2 additions & 2 deletions R/odds.ratio.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#' @details
#' For models calculated with \code{multinom} (nnet),
#' p-value are calculated according to
#' \url{http://www.ats.ucla.edu/stat/r/dae/mlogit.htm}.
#' \url{https://stats.idre.ucla.edu/r/dae/multinomial-logistic-regression/}.
#' @seealso
#' \code{\link[nnet]{multinom}} in the \link[nnet]{nnet} package.
#' @export
Expand All @@ -60,7 +60,7 @@
if (!inherits(x, "multinom")) stop("x must be of class 'multinom'.")
OR <- exp(summary(x)$coefficients)
ci <- exp(stats::confint(x,level=level))
## From http://www.ats.ucla.edu/stat/r/dae/mlogit.htm
## From https://stats.idre.ucla.edu/r/dae/multinomial-logistic-regression/
s <- summary(x)
z <- s$coefficients/s$standard.errors
p <- p <- (1 - stats::pnorm(abs(z), 0, 1)) * 2
Expand Down

0 comments on commit 70082f2

Please sign in to comment.