try_theta: try_theta is a function which creates the model parameters...

Description Usage Arguments Value

Description

try_theta is a function which creates the model parameters and objects related to them. If the input is not a list, this function creates a list which is also a "sema" class with all needed objects stored within.

Usage

1
2
try_theta(theta, n_fixed, n_random, start_resid_var, start_random_var,
  start_fixed_coef, prior_n, prior_j)

Arguments

theta

Either an empty object or an object with class list and sema.

n_fixed

Number of fixed effects.

n_random

Number of random effects.

start_resid_var

Starting values residual variance, default starting value equals 1.

start_random_var

Starting values variance of random effects, default starting values equal 1.

start_fixed_coef

Starting values fixed effect coefficients, default starting values equal 1.

prior_n

Weight starting value residual variance.

prior_j

Weight starting values fixed effects coefficients and random effects variance.

Value

If theta is a list, it returns theta as it was supplied, else a list with needed objects is returned.


L-Ippel/SEMA documentation built on May 30, 2019, 8:23 a.m.