Learn R Programming

processR (version 0.2.7)

getHelmert: Get Helmert Coding of column j of group with length of unique values (count-1)

Description

Get Helmert Coding of column j of group with length of unique values (count-1)

Usage

getHelmert(x, j, count = NULL)

Value

A numeric vector

Arguments

x

a numeric vector

j

column no

count

length unique values of group minus 1

Examples

Run this code
x=c(1:4,4:2,2,3,5)
getHelmert(x,1)
getHelmert(mtcars$cyl,1)

Run the code above in your browser using DataLab