R/mcmc_as_formula.R

Defines functions mcmc_as_formula

## File Name: mcmc_as_formula.R
## File Version: 0.11

mcmc_as_formula <- function( string )
{
    string <- paste0( string, collapse=" " )
    string <- gsub("___ ", "___", string, fixed=TRUE )
    form <- stats::as.formula(string)
    return(form)
}

Try the sirt package in your browser

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

sirt documentation built on May 29, 2024, 8:43 a.m.