print.PAF_q: Print out PAF_q for differing risk factors

View source: R/PAF_calc_continuous.R

print.PAF_qR Documentation

Print out PAF_q for differing risk factors

Description

Print out PAF_q for differing risk factors

Usage

## S3 method for class 'PAF_q'
print(x, ...)

Arguments

x

A PAF_q object.

...

Other arguments to be passed to print

Value

No return value, prints the PAF_q object to the console.

Examples

library(splines)
library(survival)
library(parallel)
options(boot.parallel="snow")
options(boot.ncpus=2)
# The above could be set to the number of available cores on the machine
model_continuous <- glm(formula = case ~ region * ns(age, df = 5) +
sex * ns(age, df = 5) + education +exercise + ns(diet, df = 3) +
 alcohol + stress + ns(lipids,df = 3) + ns(waist_hip_ratio, df = 3) +
high_blood_pressure, family = "binomial", data = stroke_reduced)
out <- PAF_calc_continuous(model_continuous,
riskfactor_vec=c("diet","lipids","waist_hip_ratio"),
q_vec=c(0.01, 0.1,0.3,0.5,0.7,0.9),ci=FALSE,calculation_method="B",
data=stroke_reduced)
print(out)

graphPAF documentation built on May 29, 2024, 10:21 a.m.