View source: R/APLM_function.R
APLM_function | R Documentation |
use the method of multiplying the beta vector by the data matrix to calculate the value of y.
yget(data, beta, e, way)
data |
data matrix |
beta |
beta is vector of (beta0, beta1, ... , betan) |
e |
random error tern e, length is data length |
war |
way=1 or 2 is 2 way to calculate y |
x <- data.frame(matrix(rnorm(300), ncol=3))
beta <- c(4,2,3)
y1 <- yget(data=x, beta=beta, e=rnorm(dim(x)[1]), way=1)
y2 <- yget(data=x, beta=beta, e=rnorm(dim(x)[1]), way=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.