justBetas {Omisc}R Documentation

justBetas

Description

justBetas

Usage

justBetas(data, Y, X)

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

Value

A vector of unstandardized beta weights

Examples

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))

[Package Omisc version 0.1.5 Index]