Re: [R] Retrieving response variable in the probit

2016-05-02 Thread Achim Zeileis
On Mon, 2 May 2016, Steven Yen wrote: Can anyone tell me how to retrieve the response (dependent) variable from a probit regression object (as much as model.matrix(obj) retrieves the data matrix). Below is a self-runnable set of codes. Thank you! library(sampleSelection) data<-read.csv("https:/

[R] Retrieving response variable in the probit

2016-05-02 Thread Steven Yen
Can anyone tell me how to retrieve the response (dependent) variable from a probit regression object (as much as model.matrix(obj) retrieves the data matrix). Below is a self-runnable set of codes. Thank you! library(sampleSelection) data<-read.csv("https://dl.dropboxusercontent.com/u/220037024/Ye