prior_names: Prior Names

Description Usage Arguments Examples

View source: R/prior_names.R

Description

Prior Names

Usage

1
2
prior_names(fixed_location, random_location, fixed_scale, random_scale,
  data)

Arguments

fixed_location

a formula object for the fixed-effects part of the location sub-model, with the response (on the left) and the terms (on the right) sepearted by ~.

random_location

a formula object for the random effects part of the location sub-model, with the random effect (on the left) and the cluster (on the right) seperated by ~.

fixed_scale

a formula object for the fixed-effects part of the scale sub-model, with the response (on the left) and the terms (on the right) sepearted by ~.

random_scale

a formula object for the random effects part of the location sub-model, with the random effect (on the left) and the cluster (on the right) seperated by ~.

data

a data frame containing the variables named in fixed_location, random_location, fixed_scale, and random_scale

Examples

1
2
3
4
5
6
dat <- nlme::Orthodont
prior_names(fixed_location = distance ~ Sex + age,
           fixed_scale = sigma ~ age,
           random_location = ~ 1 | Subject,
           random_scale = ~ 1 | Subject,
           data = dat)

donaldRwilliams/hypMuVar documentation built on Jan. 10, 2020, 9:45 a.m.