justBetas: justBetas

View source: R/justBetas.R

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

Omisc documentation built on Aug. 9, 2022, 5:09 p.m.

Related to justBetas in Omisc...