Closed jeromepaul closed 6 years ago
add drop=FALSE so that as.matrix(mm) %*% beta doesn't fail when X has only one row
drop=FALSE
as.matrix(mm) %*% beta
X
Thx.
add
drop=FALSE
so thatas.matrix(mm) %*% beta
doesn't fail whenX
has only one row