Learn R Programming

forsearch (version 6.4.0)

aStep1: Create Set of Observation Numbers in Step 1 for Linear Model Analysis

Description

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

Usage

aStep1(yesfactor, df1, df1.ls, inner.rank, initial.sample, formulaA, 
   nofactform, ycol, b.d)

Value

Produces set of observation numbers for Step 1. Accounts for presence of factors 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

inner.rank

Rank of X matrix of lm analysis on entire database

initial.sample

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

formulaA

Fixed parameter formula of lm function

nofactform

2-sided formula excluding factor variables

ycol

Response column number

b.d

Index of point to begin diagnostic listings

Author

William R. Fairweather

Details

Support function, usually not called independently