Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

x

a numeric vector

j

column no

count

length unique values of group minus 1

Value

A numeric vector

Source

Andrew F. Hayes.(2018) Introduction to Mediation, Moderation and Conditional Process Analysis(2nd Ed.). New York, NY: The Guilford Press. p584

Examples

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

processR

Implementation of the 'PROCESS' Macro

v0.2.6
GPL-2
Authors
Keon-Woong Moon [aut, cre], Sokyoung Hong [ctb]
Initial release
2021-1-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.