Learn R Programming

Omisc (version 0.1.5)

justBetas: justBetas

Description

justBetas

Usage

justBetas(data, Y, X)

Value

A vector of unstandardized beta weights

Arguments

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

Examples

Run this code
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))

Run the code above in your browser using DataLab