EconPapers    
Economics at your fingertips  
 

Ridits right, left, center, native and foreign

Roger Newson

London Stata Conference 2021 from Stata Users Group

Abstract: Ridit functions are specified with respect to an identified probability distribution. They are like ranks, only expressed on a scale from 0 to 1 (for unfolded ridits), or -1 to 1 ( for folded ridits). Ridit functions have generalised inverses called percentile functions. A native ridit is a ridit of a variable with respects to its own distribution. Native ridits can be computed using the ridit() function of Nick Cox's SSC package egenmore. Alternatively, weighted ridits can be computed using the SSC package wridit. This has a handedness() option, where handedness(right) specifies a right--continuous ridit (also known as a cumulative distribution function), handedness(left) specifies a left--continuous ridit, and handedness(center) (the default) specifies a ridit function discontinuous at its mass points. wridit now has a module fridit, computing foreign ridits of a variable with respect to a distribution other than its own, specifying the foreign distribution in another data frame. An application of ridits is ridit splines, which are splines in a ridit function, typically computed using the SSC package polyspline. As an example, we may fit a ridit spline to a training set, and use it for prediction in a test set, using foreign ridits of an X-variable in the test set with respect to the distribution of the X-variable in the training set. The model parameterss are typically values of an outcome variable corresponding to percentiles of the X-variable in the training set. This practice stabilises (or Winsorises) outcome values corresponding to X-values in the test set outside the range of X-values in the training set

Date: 2021-09-12
New Economics Papers: this item is included in nep-isf
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/usug2021/usug21_newson.pdf presentation materials (application/pdf)
http://fmwww.bc.edu/repec/usug2021/usug21_newson_example1.do sample do-file (text/plain)
http://fmwww.bc.edu/repec/usug2021/usug21_newson_example2.do sample do-file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:usug21:1

Access Statistics for this paper

More papers in London Stata Conference 2021 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:usug21:1