R/biespn.R

#' Unbiased estimator for alpha (PN)
#'
#' @description Unbiased estimator for \code{alpha}
#'
#' @usage pn.bias(x)
#'
#'@param x the response vector
#'
#' @export



pn.bias <- function(x){
  dados <- as.matrix(x)
  n <- length(dados)
  alpha_cor <- -(n-1)/(sum(log(pnorm(x))))


list(alpha_cor = alpha_cor, loglik = lv_pn(alpha_cor,x))
}

Try the PowerNormal package in your browser

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

PowerNormal documentation built on May 2, 2019, 7:31 a.m.