impute_fpca | R Documentation |
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
)
mxfundata |
Dataframe of spatial summary functions from multiplex imaging data, in long format. Can be estimated using the function |
id |
Character string, the name of the variable that identifies each unique subject. |
r |
Character string, the name of the variable that identifies the function domain (usually a radius for spatial summary functions). Default is "r". |
value |
Character string, the name of the variable that identifies the spatial summary function values. Default is "fundiff". |
knots |
Number of knots for defining spline basis. |
analysis_vars |
Optional list of variables to be retained for downstream analysis. |
smooth |
Option to smooth data using FPCA. |
A dataframe
where the missing function values (NA) for the value
variable have been replaced with estimates from FPCA.
Julia Wrobel julia.wrobel@emory.edu
# simulate data
set.seed(1001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.