Package: misc 0.10.4

T. Moudiki

misc: Miscellaneous Useful R Functions

Miscellaneous Useful R Functions.

Authors:T. Moudiki [aut, cre]

misc_0.10.4.tar.gz
misc_0.10.4.zip(r-4.7)misc_0.10.4.zip(r-4.6)misc_0.10.4.zip(r-4.5)
misc_0.10.4.tgz(r-4.6-any)misc_0.10.4.tgz(r-4.5-any)
misc_0.10.4.tar.gz(r-4.7-any)misc_0.10.4.tar.gz(r-4.6-any)
misc_0.10.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
misc/json (API)

# Install 'misc' in R:
install.packages('misc', repos = c('https://techtonique.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/thierrymoudiki/misc/issues

On CRAN:

Conda:

5.92 score 1 packages 69 scripts 516 downloads 34 exports 6 dependencies

Last updated from:1f8759cfa7. Checks:7 WARNING, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING122
source / vignettesOK192
linux-release-x86_64WARNING125
macos-release-arm64WARNING109
macos-oldrel-arm64WARNING230
windows-develWARNING89
windows-releaseWARNING96
windows-oldrelWARNING80
wasm-releaseOK109

Exports:conformalizecoverage_scoredebug_printdirect_samplingfit_param_distfit_predict_shapget_next_dategradient_shapintegrateintegrated_gradientsis_package_availableis_wholenumberKL_divergence_histlocal_linear_shapmonotonic_regressionmsplone_hot_encodeparforplot_prediction_intervalpredict.conformalizeprint_shap_summaryresiduals.conformalizerm_zero_colsscale_matrixsims_to_forecast_objectsimulate.conformalizesort_dfsplit_datasplittstime_series_accuracytimeitvlookupwinkler_scorewinkler_score2

Dependencies:codetoolsdoSNOWforeachiteratorsMASSsnow

Gradient SHAP
Example usage

Last update: 2025-08-06
Started: 2025-08-06

Linear SHAP
Example usage

Last update: 2025-08-05
Started: 2025-08-05

conformalize
Example: Conformal Prediction with Out-of-Sample Coverage | Simulated Data | Fit Conformal Model | Generate Predictions and Prediction Intervals | Calculate Out-of-Sample Coverage Rate | Results | Example: Conformal Prediction with the MASS::Boston Dataset | Load the Data | Split the Data | Fit Conformal Model 1 | Generate Predictions and Prediction Intervals 1 | Calculate Out-of-Sample Coverage Rate 1 | Fit Conformal Model 2 | Generate Predictions and Prediction Intervals 2 | Calculate Out-of-Sample Coverage Rate 2

Last update: 2025-08-05
Started: 2025-03-21

Getting started with misc::parfor

Last update: 2025-08-05
Started: 2024-09-14

Monotonic regression
Example usage 1

Last update: 2025-08-05
Started: 2025-07-31

Plot prediction interval

Last update: 2025-07-21
Started: 2025-07-21

conformalize matrix interface
Example: Conformal Prediction with Out-of-Sample Coverage | Simulated Data | Fit Conformal Model | Generate Predictions and Prediction Intervals | Calculate Out-of-Sample Coverage Rate | Results | Example: Conformal Prediction with the MASS::Boston Dataset | Load the Data | Split the Data | Calculate Out-of-Sample Coverage Rate 1

Last update: 2025-06-23
Started: 2025-04-28

Timing R code
Example usage 1 | Example usage 2

Last update: 2024-10-15
Started: 2024-10-15

Fitting multiple parametric distributions to data and simulate best-fitting distribution
Example usage 1 | Example usage 2 | Example usage 3 | Example usage 4

Last update: 2024-10-01
Started: 2024-10-01

Getting started

Last update: 2024-09-14
Started: 2024-09-14

Readme and manuals

Help Manual

Help pageTopics
Compute finite difference gradientscompute_finite_difference_gradients
Compute SHAP values for linear modelscompute_linear_shap
Conformal Prediction for Regression Modelsconformalize
Correlation-aware SHAP computation using sampling approachcorrelation_aware_shap
Calculate Coverage Score for Prediction Intervalscoverage_score
Debug printdebug_print
Direct samplingdirect_sampling
Extract coefficients and intercept from various model typesextract_coefficients
Fit linear model based on specified typefit_linear_model
Fit multiple parametric distributions, compute KL divergence, simulate best fitfit_param_dist
Fit a linear model and compute SHAP values with response centeringfit_predict_shap
Get predictions from various model typesget_model_predictions
Get model type stringget_model_type
Get next date for a time series objectget_next_date
Gradient-Based SHAP for Any Differentiable Functiongradient_shap
Numerical Integration Using Trapezoidal or Simpson's Ruleintegrate
Integrated Gradients for Model Explanationsintegrated_gradients
Check if a package is availableis_package_available
Check if a number is a whole numberis_wholenumber
Function to calculate KL divergence for continuous distributions using histogramsKL_divergence_hist
LIME-style local linear approximation using gradientslocal_linear_shap
Monotonic Regression using XGBoost, LightGBM, or SCAMmonotonic_regression
Mean Scaled Pinball Loss for Quantile Forecastsmspl
One-hot encodingone_hot_encode
Parallel For Loop with Progress Barparfor
Plot Prediction Interval With Optional Past Observationsplot_prediction_interval
Predict method for conformalize objectspredict.conformalize
Print summary of SHAP resultsprint_shap_summary
Residuals method for conformalize objectsresiduals.conformalize
Removing columns containing only zerosrm_zero_cols
Simulate multivariate datarmultivariate
Scale matrixscale_matrix
Convert Simulation Matrix to Forecast Objectsims_to_forecast_object
simulate method for conformalize objectssimulate.conformalize
Sort data framesort_df
Split a datasetsplit_data
Partition a time series objectsplitts
Calculate Multiple Accuracy Metrics for Forecaststime_series_accuracy
Timing an expressiontimeit
Validate SHAP decompositionvalidate_shap_decomposition
VLOOKUPvlookup
Winkler score for probabilistic forecastswinkler_score
Calculate Winkler Score for Prediction Intervalswinkler_score2