mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-11-21 19:30:22 +01:00
update
This commit is contained in:
parent
779ea0b763
commit
cf26fd8876
@ -1,6 +1,6 @@
|
|||||||
Package: daDoctoR
|
Package: daDoctoR
|
||||||
Title: Functions For Health Research
|
Title: Functions For Health Research
|
||||||
Version: 0.19.8
|
Version: 0.19.9
|
||||||
Year: 2019
|
Year: 2019
|
||||||
Author: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
Author: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
||||||
Maintainer: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
Maintainer: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>
|
||||||
|
@ -16,8 +16,8 @@ export(hwe_allele)
|
|||||||
export(hwe_app)
|
export(hwe_app)
|
||||||
export(hwe_geno)
|
export(hwe_geno)
|
||||||
export(hwe_sum)
|
export(hwe_sum)
|
||||||
|
export(plot_biv_olr)
|
||||||
export(plot_ord_odds)
|
export(plot_ord_odds)
|
||||||
export(plot_ord_odds_v2)
|
|
||||||
export(rep_biv)
|
export(rep_biv)
|
||||||
export(rep_epi_tests)
|
export(rep_epi_tests)
|
||||||
export(rep_glm)
|
export(rep_glm)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#' Forrest plot from ordinal logistic regression, version2.
|
#' Forrest plot from ordinal logistic regression, version2 of plot_ord_ords().
|
||||||
#'
|
#'
|
||||||
#' Heavily inspired by https://www.r-bloggers.com/plotting-odds-ratios-aka-a-forrestplot-with-ggplot2/
|
#' Heavily inspired by https://www.r-bloggers.com/plotting-odds-ratios-aka-a-forrestplot-with-ggplot2/
|
||||||
#' @param meas outcome meassure variable name or response in data-data.frame as a string. Should be factor, preferably ordered.
|
#' @param meas outcome meassure variable name or response in data-data.frame as a string. Should be factor, preferably ordered.
|
||||||
@ -14,7 +14,7 @@
|
|||||||
#' @keywords forestplot
|
#' @keywords forestplot
|
||||||
#' @export
|
#' @export
|
||||||
|
|
||||||
plot_ord_odds_v2<-function(meas,vars,data, title = NULL,dec=3,lbls=NULL,hori="OR (95 % CI)",vert="Variables",short=FALSE,analysis=c("biv","multi")){
|
plot_biv_olr<-function(meas,vars,data, title = NULL,dec=3,lbls=NULL,hori="OR (95 % CI)",vert="Variables",short=FALSE,analysis=c("biv","multi")){
|
||||||
|
|
||||||
require(ggplot2)
|
require(ggplot2)
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#' Forrest plot from ordinal logistic regression
|
#' Forrest plot from ordinal logistic regression.
|
||||||
#'
|
#'
|
||||||
#' Heavily inspired by https://www.r-bloggers.com/plotting-odds-ratios-aka-a-forrestplot-with-ggplot2/
|
#' Heavily inspired by https://www.r-bloggers.com/plotting-odds-ratios-aka-a-forrestplot-with-ggplot2/
|
||||||
#' @param x input data.
|
#' @param x input data.
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
% Generated by roxygen2: do not edit by hand
|
% Generated by roxygen2: do not edit by hand
|
||||||
% Please edit documentation in R/plot_ord_odds_v2.R
|
% Please edit documentation in R/plot_biv_olr.R
|
||||||
\name{plot_ord_odds_v2}
|
\name{plot_biv_olr}
|
||||||
\alias{plot_ord_odds_v2}
|
\alias{plot_biv_olr}
|
||||||
\title{Forrest plot from ordinal logistic regression, version2.}
|
\title{Forrest plot from ordinal logistic regression, version2 of plot_ord_ords().}
|
||||||
\usage{
|
\usage{
|
||||||
plot_ord_odds_v2(meas, vars, data, title = NULL, dec = 3,
|
plot_biv_olr(meas, vars, data, title = NULL, dec = 3, lbls = NULL,
|
||||||
lbls = NULL, hori = "OR (95 \% CI)", vert = "Variables",
|
hori = "OR (95 \% CI)", vert = "Variables", short = FALSE,
|
||||||
short = FALSE, analysis = c("biv", "multi"))
|
analysis = c("biv", "multi"))
|
||||||
}
|
}
|
||||||
\arguments{
|
\arguments{
|
||||||
\item{meas}{outcome meassure variable name or response in data-data.frame as a string. Should be factor, preferably ordered.}
|
\item{meas}{outcome meassure variable name or response in data-data.frame as a string. Should be factor, preferably ordered.}
|
@ -2,7 +2,7 @@
|
|||||||
% Please edit documentation in R/plot_ord_odds.R
|
% Please edit documentation in R/plot_ord_odds.R
|
||||||
\name{plot_ord_odds}
|
\name{plot_ord_odds}
|
||||||
\alias{plot_ord_odds}
|
\alias{plot_ord_odds}
|
||||||
\title{Forrest plot from ordinal logistic regression}
|
\title{Forrest plot from ordinal logistic regression.}
|
||||||
\usage{
|
\usage{
|
||||||
plot_ord_odds(x, title = NULL, dec = 3, lbls = NULL,
|
plot_ord_odds(x, title = NULL, dec = 3, lbls = NULL,
|
||||||
hori = "OR (95 \% CI)", vert = "Variables", short = FALSE,
|
hori = "OR (95 \% CI)", vert = "Variables", short = FALSE,
|
||||||
|
Loading…
Reference in New Issue
Block a user