parse.formula {hgwrr}R Documentation

Parse a HGWR formula.

Description

This function accept an R formula object and extract names of the group variable, local fixed effects, global fixed effects and random effects.

Usage

parse.formula(formula)

## S3 method for class 'push'
stack(s, x)

## S3 method for class 'pop'
stack(s)

Arguments

formula

A formula object. Its format is much like the formula used in lmer from package ”lme4”.

s

A list, vector or any other object which works with function c

x

An object which can be appended to s.

Value

A list consists of: - response: name of dependent (response) variable. - group: name of group variable. - random.effects: a vector of names of random effects. - fixed.effects: a vector of names of fixed effects.


[Package hgwrr version 0.3-0 Index]