Learn R Programming

wec (version 0.4-1)

Weighted Effect Coding

Description

Provides functions to create factor variables with contrasts based on weighted effect coding, and their interactions. In weighted effect coding the estimates from a first order regression model show the deviations per group from the sample mean. This is especially useful when a researcher has no directional hypotheses and uses a sample from a population in which the number of observation per group is different.

Copy Link

Version

Install

install.packages('wec')

Monthly Downloads

197

Version

0.4-1

License

GPL-3

Maintainer

Rense Nieuwenhuis

Last Published

October 31st, 2017

Functions in wec (0.4-1)

BMI

Data on BMI of Dutch citizens
PUMS

Public Use Microdata Sample files (PUMS) 2013
contr.wec

Function calculates contrasts for a factor variable based on weighted effect coding.
wec.interact

Function to create an interaction between two variables based on weighted effect coding.