This commit is contained in:
agdamsbo 2018-10-04 12:39:26 +02:00
parent 85b404c646
commit fca077fd40
2 changed files with 2 additions and 18 deletions

View File

@ -7,15 +7,7 @@
#' @keywords change-in-estimate #' @keywords change-in-estimate
#' @export #' @export
#' @examples #' @examples
#' l<-5 #' cie_test()
#' 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)
cie_test<-function(meas,vars,string,data,logistic=FALSE,cut=0.1){ cie_test<-function(meas,vars,string,data,logistic=FALSE,cut=0.1){

View File

@ -9,15 +9,7 @@
#' @keywords logistic regression #' @keywords logistic regression
#' @export #' @export
#' @examples #' @examples
#' l<-5 #' rep_glm()
#' 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<-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)])
#' rep_glm(meas="y",vars="x",string=preds,ci=FALSE,data=df)
rep_glm<-function(meas,vars,string,ci=FALSE,data){ rep_glm<-function(meas,vars,string,ci=FALSE,data){
## x is data.frame of predictors, y is vector of an aoutcome as a factor ## x is data.frame of predictors, y is vector of an aoutcome as a factor