# truncSP: An R Package for Estimation of Semi-Parametric Truncated Linear Regression Models

Maria Karlsson, Anita Lindmark

## Abstract

Problems with truncated data occur in many areas, complicating estimation and inference. Regarding linear regression models, the ordinary least squares estimator is inconsistent and biased for these types of data and is therefore unsuitable for use. Alternative estimators, designed for the estimation of truncated regression models, have been developed. This paper presents the R package truncSP. The package contains functions for the estimation of semi-parametric truncated linear regression models using three different estimators: the symmetrically trimmed least squares, quadratic mode, and left truncated estimators, all of which have been shown to have good asymptotic and finite sample properties. The package also provides functions for the analysis of the estimated models. Data from the environmental sciences are used to illustrate the functions in the package.
{"ft_lang_label":"__label__en","ft_lang_prob":0.85292053,"math_prob":0.8288164,"size":995,"snap":"2023-40-2023-50","text_gpt3_token_len":177,"char_repetition_ratio":0.1493441,"word_repetition_ratio":0.0,"special_character_ratio":0.15778895,"punctuation_ratio":0.101265825,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95728266,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-04T10:21:39Z\",\"WARC-Record-ID\":\"<urn:uuid:f3563a4f-7db0-4c5b-8aa9-8c77421c17e2>\",\"Content-Length\":\"37877\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:11c15d00-c3aa-443d-9a8a-9714c427fa1d>\",\"WARC-Concurrent-To\":\"<urn:uuid:61f3329b-9e7a-44fd-becb-271903d0d2b9>\",\"WARC-IP-Address\":\"138.232.16.156\",\"WARC-Target-URI\":\"https://www.jstatsoft.org/article/view/v057i14\",\"WARC-Payload-Digest\":\"sha1:UP6CGLMJU6BYPWF2HDEQ4ZPKBRNOAOIH\",\"WARC-Block-Digest\":\"sha1:SPWHI7HU7TNHMKCADWYIKYZMUJGEXUV3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233511364.23_warc_CC-MAIN-20231004084230-20231004114230-00187.warc.gz\"}"}