Internal function called by TITLE: regression function
that imputes missing data in functional predictors using FPCA.
impute_fpca(
mxfundata,
id,
r = "r",
value = "fundiff",
knots = NULL,
analysis_vars,
smooth
)
A dataframe
where the missing function values (NA) for the value
variable have been replaced with estimates from FPCA.
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".
Number of knots for defining spline basis.
Optional list of variables to be retained for downstream analysis.
Option to smooth data using FPCA.
Julia Wrobel julia.wrobel@emory.edu
# simulate data
set.seed(1001)
Run the code above in your browser using DataLab