Learn R Programming

forsearch (version 6.4.0)

bStep1: Create Set of Observation Numbers in Step 1 for Linear Mixed Effects Model Analysis

Description

Derives the first set of observation numbers for forsearch in linear mixed effects models

Usage

bStep1(yesfactor, df1, df1.ls, groups, inner.rank, source, initial.sample, 
      nofactform = NULL, formulaA, randform, inc, ycol, b.d)

Value

Produces set of observation numbers for Step 1. Accounts for presence of factors and groups in the dataset

Arguments

yesfactor

Logical. TRUE if there are factors in the X matrix

df1

Data frame being analyzed by forward search.

df1.ls

List, each element of which is a factor subset of df1

groups

Vector of Quoted names of group variables

inner.rank

Rank of X matrix of lme analysis on entire database

source

Vector list of subsets provding observations

initial.sample

Number of random samples from which to take set of initial observations

nofactform

2-sided formula without factors

formulaA

Formula for all effects including factors and constructed variables

randform

One-sided random effects formula

inc

Logical. TRUE causes relaxation of lmeControl

ycol

Response column number

b.d

Index of point to begin diagnostic listings

Author

William R. Fairweather

Details

Support function, usually not called independently