Description Usage Arguments Value Examples
View source: R/polygenicPTSD_multinom.R
This function allows you to quickly run and save the required multinomial models for the analysis pipeline.
1 | polygenicPTSD_multinom(data_entry)
|
data_entry |
Dataframe input |
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.
1 | polygenicPTSD_multinom(classed)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.