dot-get_mean: Sequence of Variable Means

Description Usage Arguments Value Examples

Description

Sequence of Variable Means

Usage

1
.get_mean(data, ng = 1001)

Arguments

data

- dataframe or matrix containing all variables in the model (must be all numeric)

ng

- optional length of the sequence

Value

- matrix of mean values

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Set length of sequence
n = 1001

#Load data
data(mtcars)
#Show number of parameters in data
ncol(mtcars)

#Apply get_means to dataset
z = .get_mean(mtcars, n)
#Show output
z
#Dimensions is n x (number of parameters)
dim(z)

christithomp/scamplot documentation built on Dec. 10, 2019, 11:33 a.m.