daDoctoR/man/cie_test.Rd

32 lines
920 B
Plaintext
Raw Normal View History

2018-10-02 21:07:43 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cie_test.R
\name{cie_test}
\alias{cie_test}
\title{A repeated regression function for change-in-estimate analysis}
\usage{
2018-10-04 11:59:17 +02:00
cie_test(meas, vars, string, data, logistic = FALSE, cut = 0.1)
2018-10-02 21:07:43 +02:00
}
\arguments{
2018-10-04 11:59:17 +02:00
\item{string}{String of columnnames from dataframe to include. Use dput().}
2018-10-02 21:07:43 +02:00
\item{y}{Effect meassure.}
\item{v1}{Main variable in model}
}
\description{
2018-10-04 11:59:17 +02:00
For bivariate analyses. From "Modeling and variable selection in epidemiologic analysis." - S. Greenland, 1989.
2018-10-02 21:07:43 +02:00
}
\examples{
2018-10-04 11:59:17 +02:00
l<-5
y<-factor(rep(c("a","b"),l))
x<-rnorm(length(y), mean=50, sd=10)
v1<-factor(rep(c("r","s"),length(y)/2))
v2<-as.numeric(sample(1:100, length(y), replace=FALSE))
v3<-as.numeric(1:length(y))
d<-data.frame(y,x,v1,v2,v3)
preds<-dput(names(d)[3:ncol(d)])
cie_test(meas="y",vars="x",string=preds,data=d,logistic = TRUE,cut = 0.1)
2018-10-02 21:07:43 +02:00
}
\keyword{change-in-estimate}