mc: Constructor for mean component object

View source: R/svcm_main.R

mcR Documentation

Constructor for mean component object

Description

Creates a mean component object used to define (part of) the mean structure in the model.

Usage

mc(form, X = NULL)

Arguments

form

An expression for the mean model.

X

A design matrix.

Value

An object of class mc.

Examples

library(svcm)
X <- cbind(1, rnorm(100))
B <- pm(nrow = 6, ncol = 2,
        labels = paste0("b", 1:12),
        values = 0,
        free = TRUE,
        name = "B")
mc <- mc(form = B, X = X)

espenmei/svcmr documentation built on March 29, 2025, 1:01 p.m.