# NOT RUN {
critK10(58)
#[1] 2.824
# }
# NOT RUN {
# Modified slightly from TAC sources (Original has the # Not run:)
# KJRS() is the ".kngb()" function in TAC sources
n <- 10:149; KJRS <- function(n) -0.9043+3.345*sqrt(log10(n))-0.4046*log10(n)
result <- data.frame(n=n, Ktrue=sapply(n, critK10), # 17B single Grubbs--Beck
KJRS= sapply(n, KJRS )) # name mimic of TAC sources
# }
# NOT RUN {
# }
# NOT RUN {
# Near verbatim from TAC sources, GGBK() does not work, issues a stop().
# KJRS() is the ".kngb()" function in TAC sources
n <- 10:149; KJRS <- function(n) -0.9043+3.345*sqrt(log10(n))-0.4046*log10(n)
result <- data.frame(n=n, Ktrue=sapply(n, critK10), # 17B single Grubbs--Beck
KJRS= sapply(n, KJRS ), # name mimic of TAC sources
KTAC= sapply(n, GGBK )) # name mimic of TAC sources
# }
Run the code above in your browser using DataLab