rsp.match | R Documentation |
rsp_match_profile
compares a supplied respeciate
profile (or similar data set) and a reference set of supplied profiles
and attempts to identify nearest matches on the
basis of similarity.
rsp_match_profile(
rsp,
ref,
matches = 10,
rescale = 5,
min.n = NULL,
method = "sid * srd",
self.test = FALSE,
...,
output = "summary"
)
rsp |
A |
ref |
A |
matches |
Numeric (default 10), the maximum number of profile matches to report. |
rescale |
Numeric (default 5), the data scaling method to apply before
comparing |
min.n |
Numeric (or |
method |
Character (default 'sid * srd'), the ranking metric used to
rank profile matches. The function calculates several matching metrics:
'pd', the Pearson's Distance (1 - Pearson's correlation coefficient),
'srd', like pd but using the Spearman Ranked data correlation coefficient,
and 'sid', the Standardized Identity Distance (See References). All the
metrics tend to zero for better matches, and the |
self.test |
Logical (default FALSE). The match process self-tests by adding
|
... |
Additional arguments, typically ignore but sometimes used for
function development. Currently, testing |
output |
Character, output options, including: |
By default rsp_match_profile
returns a fit report summary: a
data.frame
of up to matches
fit reports for the nearest
matches to profiles from the reference profile data set, ref
. (See
also output
above for other options). If several options are requested,
earlier options are report (e.g. using print
or plot
) and only
the final option is returned.
Distance metrics are based on recommendations by Belis et al (2015) and as implemented in Mooibroek et al (2022):
Belis, C.A., Pernigotti, D., Karagulian, F., Pirovano, G., Larsen, B.R., Gerboles, M., Hopke, P.K., 2015. A new methodology to assess the performance and uncertainty of source apportionment models in intercomparison exercises. Atmospheric Environment, 119, 35–44. https://doi.org/10.1016/j.atmosenv.2015.08.002.
Mooibroek, D., Sofowote, U.M. and Hopke, P.K., 2022. Source apportionment of ambient PM10 collected at three sites in an urban-industrial area with multi-time resolution factor analyses. Science of The Total Environment, 850, p.157981. http://dx.doi.org/10.1016/j.scitotenv.2022.157981.
rsp_plot_match
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.