justBetas | R Documentation |
justBetas
justBetas(data, Y, X)
data |
A data frame |
Y |
The name or column number of the Y variable |
X |
The name(s) or column number(s) of the X variables |
A vector of unstandardized beta weights
X<-stats::rnorm(100) Y<-stats::rnorm(100)+5*(X) data<-cbind(Y,X) justBetas(data,1,2) #if you want an intercept Y<-stats::rnorm(100)+5*(X)+5 data<-cbind(Y,X,1) justBetas(data,1,c(2:3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.