polygenicPTSD_multinom: A function to run multinomial regression on categorical...

Description Usage Arguments Value Examples

View source: R/polygenicPTSD_multinom.R

Description

This function allows you to quickly run and save the required multinomial models for the analysis pipeline.

Usage

1

Arguments

data_entry

Dataframe input

Value

Will return multinom objects for all required models, and save them in your working directory.

Specifically, runs main effect and interaction models for all 4 PTSD variables and PRS variables, using a base model of sex, age, first three ancestry principle components. Outcome is 3-level categorical hypertension outcome (normotensive, pre-hypertensive, and hypertensive).

Regression is stratified by ancestry, and sensitivity analyses are performed for gender, education, and trauma count.

Examples

1

margarethannum/PolygenicPTSD documentation built on May 17, 2019, 8:16 p.m.