微信号:moooshaaa
简介
The tobit model, also called a censored regression model, is designed to estimate linear relationships between variables when there is either left- or right-censoring in the dependent variable (also known as censoring from below and above, respectively). Censoring from above takes place when cases with a value at or above some threshold, all take on the value of that threshold, so that the true value might be equal to the threshold, but it might also be higher. In the case of censoring from below, values those that fall at or below some threshold are censored.
Syntax
√输入1:
install.packages("rio")
library(rio)
tbimport("tb.sav")
head(tb)
√结果1:
no nation education religion marriage surgical admission ability watcher painscore Spirituality fatigue anxiety depression
1 1 2 3 0 2 1 3 2 3 2 28 27 60 50
2 2 1