R/tcalc.R

#' Calculation of a sufficient statistic for a parameter of iterest for exact clustered logistic regression.  
#'
#' This function calculates a sufficient statistic, t, for a parameter of iterest for exact clustered logistic regression.
#' @param zvec The vector of observed z-values (the sum of successses in cluster)
#' @param x A vector of predictor values for each cluster.  
#' @keywords Exact Clustered Logistic Regression
#' @export
#' @examples
#' tcalc()


tcalc = function(zvec,x){
	t = sum(zvec*x)

	t
}
lalondetl/ECLR documentation built on May 31, 2019, 6:15 p.m.