Internal function to add a null entry

addnull(what, val)

Arguments

what

vector or matrix

val

value to add for the null model

Value

what with an additional first entry or first row filled with val