powered by
Fit a multi-group negative-binomial model to SAGE data, with Pearson estimation of the common overdispersion parameter.
forward(y, x, xkept=NULL, intercept=TRUE, nvar=ncol(x))
numeric response vector.
numeric matrix of covariates, candidates to be added to the regression.
numeric matrix of covariates to be included in the starting regression.
logical, should an intercept be added to xkept?
xkept
integer, number of covariates from x to add to the regression.
x
Integer vector of length nvar, giving the order in which columns of x are added to the regression.
nvar
This function has the advantage that x can have many more columns than the length of y.
y
step
# NOT RUN { y <- rnorm(10) x <- matrix(rnorm(10*5),10,5) forward(y,x) # }
Run the code above in your browser using DataLab