Internal function called by run_fcm
that transforms long format functional data for use in a linear or additive functional Cox model.
process_fcm(
mxfundata,
id,
r = "r",
value = "fundiff",
analysis_vars,
quantile_transform = FALSE,
multilevel = FALSE
)
A dataframe
with matrix-valued covariates l_int
, t_int
, and func
for use in a linear or additive functional Cox model.
Dataframe of spatial summary functions from multiplex imaging data, in long format. Can be estimated using the function extract_summary_functions
or provided separately.
Character string, the name of the variable that identifies each unique subject.
Character string, the name of the variable that identifies the function domain (usually a radius for spatial summary functions). Default is "r".
Character string, the name of the variable that identifies the spatial summary function values. Default is "fundiff".
Optional list of variables to be retained for downstream analysis.
If TRUE, a quantile transformation is applied to the functional predictor before modeling
Julia Wrobel julia.wrobel@emory.edu
Alex Soupir alex.soupir@moffitt.org
# simulate data
set.seed(1001)
Run the code above in your browser using DataLab