R/checkyXoK.R

Defines functions checkyXoK

Documented in checkyXoK

checkyXoK <- function(y,X) {
    lns <- sapply(y,nrow)
    nrX <- sapply(X,nrow)
    if(!isTRUE(all.equal(lns,nrX,check.attributes=FALSE)))
        stop(paste0("Mismatch between lengths of response vectors and\n",
                    "numbers of rows of predictor matrices.\n"))
    invisible()
}

Try the hmm.discnp package in your browser

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

hmm.discnp documentation built on Sept. 26, 2022, 5:05 p.m.