powered by
Predict y vector from X design matrix and b vector
fit_rcpp(X,b)
Design matrix
Estimates of beta
# NOT RUN { j <- rep(1, 5) x1 <- rnorm(5) x2 <- rnorm(5, 10, 20) X = as.matrix(data.frame(j, x1, x2)) b <- 1:3 fit_rcpp(X, b) # }
Run the code above in your browser using DataLab