makeform: Construct a model formula for use by MCMCfit()

Description Usage Arguments Details

View source: R/functions.R View source: R/makeform.R

Description

Given the data frame zdata in Rcapture form, creates a formula with the interactions given.

Usage

1
makeform(zdata, interactions = NULL, includetwofac = T)

Arguments

zdata

input data matrix

interactions

a 2 \times m matrix of two-factor interactions

includetwofac

If T include all two factor excluding those in interactions. If F then include all main effects but only those two factor interactions in interactions

Details

This routine is called by the Markov Chain Monte Carlo routine MCMCfit. The routine MSEfit uses a formula with numbered variables c1, c2, … rather than using the names of the variables.


bernardsilverman/modslavmse documentation built on Aug. 10, 2019, 2:39 a.m.