R/25_satterthwaiteeeee.R

#' @export

satterthwaite<-function(c,MSE,df,alpha=0.05){
  l=c*MSE
  L=sum(c*MSE)
  dff<-((L^2)/sum((l^2)/df))
  dff2<-round(dff)
  if (dff2==0) dff2=1

  lower<-(dff*L)/(qchisq(1-alpha/2,(dff2 )))
  upper<-(dff*L)/(qchisq(alpha/2,(dff2)))
  return(cbind(estimate=L,df=(dff),lower=lower,upper=upper))
}

Try the ALSM package in your browser

Any scripts or data that you put into this service are public.

ALSM documentation built on May 2, 2019, 10:19 a.m.