Provides statistical diagnostics to evaluate whether proxy indicators reliably represent an unobservable target construct. The main function 'senser()' assesses proxies across multiple dimensions including monotonicity, information content, stability, distributional alignment, and potential bias risk. It prints a concise, interpretable summary suitable for analytical and policy-oriented assessment, without claiming causal inference.
Quality assessment framework for proxy indicators using monotonicity, information content, responsiveness, dispersion, stagnation, ceiling effect, and stability metrics.
# install.packages("devtools")
devtools::install_github("username/senseR")
library(senseR)
set.seed(42)
df <- data.frame(
gdp = rnorm(50, 100, 10),
ntl = rnorm(50, 50, 5) #ntl is nightime light index from Google Earth Engine (GEE)
)
senser(df, proxy = "ntl", target = "gdp") #English explanation by default
The composite score integrates: (1) Spearman monotonicity; (2) R-squared information content; (3) Elasticity responsiveness; (4) Coefficient of variation; (5) Absolute change; (6) Ceiling effect; and (7) Beta stability.
The methodological foundation of senseR is based on established statistical and econometric literature:
Spearman, C. (1904). The proof and measurement of association between two things. American Journal of Psychology, 15(1), 72–101. https://doi.org/10.2307/1412159
Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum Associates.
Wooldridge, J. M. (2013). Introductory Econometrics: A Modern Approach (5th ed.). South-Western Cengage Learning.
OECD (2008). Handbook on Constructing Composite Indicators: Methodology and User Guide. OECD Publishing. https://doi.org/10.1787/9789264043466-en
Hamilton, J. D. (1994). Time Series Analysis. Princeton University Press.
Chow, G. C. (1960). Tests of equality between sets of coefficients in two linear regressions. Econometrica, 28(3), 591–605. https://doi.org/10.2307/1910133