rr53: Run 53 repeated regressions as in Fredrickson et al.

Description Usage Arguments Value

Description

Run 53 repeated regressions as in Fredrickson et al.

Usage

1
2
rr53(gedata, preds, geneSigns, calibrate = TRUE, joinby = "SID",
  resids = FALSE)

Arguments

gedata

Genetic data

preds

Psychometric data (predictors)

geneSigns

Dataframe with contrast codes for genes

calibrate

Use eudaimonic/hedonic z-scores from Fredrickson et al. (default TRUE). Set to FALSE to use Brown et al.'s predictors.

joinby

On which field to join the Psychometric / Genetic data (this should be left as is)

resids

Whether gedata is the residualized gene data (TRUE) or on the raw data (FALSE=default).

Value

A dataframe containing the estimated beta weights for the eudaimonic factor.


dalejbarr/RR53 documentation built on May 14, 2019, 3:30 p.m.