This commit is contained in:
agdamsbo 2018-10-02 21:19:32 +02:00
parent b2e02094b6
commit c037733f28
5 changed files with 36 additions and 3 deletions

2
.Rbuildignore Normal file
View File

@ -0,0 +1,2 @@
^.*\.Rproj$
^\.Rproj\.user$

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata

View File

@ -1,8 +1,10 @@
#' A repeated function
#' A repeated function for bivariate analyses
#'
#' For bivariate analyses, for gating by p-value or change-in-estimate.
#' @param y Effect meassure.
#' @param v1 Main variable in model
#' @param string String of columnnames to include. Obtained with dput(). Input as c().
#' @param data dataframe of data to analyse
#' @keywords logistic regression
#' @export
#' @examples
@ -13,7 +15,7 @@ rep_biv<-function(y,v1,string,data,method="pval",logistic=FALSE,ci=FALSE,cut=0.1
require(rep_lm)
require(rep_glm)
require(cie_test)
if (method=="pval"&logistic==FALSE){
rep_lm(y=y,v1=v1,string=string,data=data,ci=ci)
}

21
daDoctoR.Rproj Normal file
View File

@ -0,0 +1,21 @@
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
AutoAppendNewline: Yes
StripTrailingWhitespace: Yes
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran

View File

@ -2,7 +2,7 @@
% Please edit documentation in R/rep_biv.R
\name{rep_biv}
\alias{rep_biv}
\title{A repeated function}
\title{A repeated function for bivariate analyses}
\usage{
rep_biv(y, v1, string, data, method = "pval", logistic = FALSE,
ci = FALSE, cut = 0.1, v2 = NULL, v3 = NULL)
@ -11,6 +11,10 @@ rep_biv(y, v1, string, data, method = "pval", logistic = FALSE,
\item{y}{Effect meassure.}
\item{v1}{Main variable in model}
\item{string}{String of columnnames to include. Obtained with dput(). Input as c().}
\item{data}{dataframe of data to analyse}
}
\description{
For bivariate analyses, for gating by p-value or change-in-estimate.