R/find.param.R

find.param <- function (object) {
    if (!inherits(object, 'estimatetables'))
        stop("input unsuitable")
    for (i in 1: length(object$output)) {
        tmp <- row.names(object$output[[1]][[1]])
        if (is.character(tmp))
            break
    }
    tmp
}

find.stats <- function (object) {
    if (!inherits(object, 'selectedstatistics'))
        stop("input unsuitable")
    for (i in 1: length(object$output)) {
        tmp <- dimnames(object$output[[1]])[[2]]
        if (is.character(tmp))
            break
    }
    tmp
}

Try the secrdesign package in your browser

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

secrdesign documentation built on March 31, 2023, 10:25 p.m.