R/johnson_neyman_lm.R

Defines functions .johnson_neyman_lm

#'@noRd
.johnson_neyman_lm <- function(object,X,M,modrange=NULL,resolution=10000,sig.thresh){
  B <- coef(object)
  sigm <- vcov(object)
  mr <- range(model.matrix(object)[,colnames(model.matrix(object))==M])
  if(!is.null(modrange))mr <- modrange
  df <- nrow(model.matrix(object)) - length(B)
  return(.johnson_neyman(B,sigm,X,M,mr,df,resolution,sig.thresh))
}
AlexHartmann00/lhmadd documentation built on Aug. 12, 2022, 3:42 p.m.