(Internal function) Perform regression models, internally used for parallelization

do.glm(X, PC, method = "linear")

Arguments

X

A vector of data

PC

A matrix of principal components

method

Specify a method to be used for regression model, which can be "linear", "poisson", and "negative.binomial". Default = "linear"

Value

A vector of residuals computed from regression model