justBetas: justBetas

Description Usage Arguments Value Examples

View source: R/justBetas.R

Description

justBetas

Usage

1
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

1
2
3
4
5
6
7
8
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 Jan. 21, 2021, 9:06 a.m.

Related to justBetas in Omisc...