Re: [R] PEA and APE Tobit

2015-02-26 Thread hnlki
Dear Mr Henningsen, I have read the posting guide but apparently not well enough. I didn't find how to include R code in my post. I'll read it again and I'll try to give a clearer example. Sorry for the inconvenience. Kind regards, Annelies > Op 26-feb.-2015 om 21:59 heeft Arne Henningsen-3

Re: [R] PEA and APE Tobit

2015-02-26 Thread Arne Henningsen
Dear Annelies On 26 February 2015 at 09:12, hnlki wrote: > I estimated a tobit model > tobit.fit<-tobit(y~x,left=0, right=Inf) (library "AER") > or > tobit2.fit<-censReg(y~x, left=0, right=Inf) (library"censReg") > I' have estimated the partial effect at the average as: > pea<-(pnorm((colMeans(x

[R] PEA and APE Tobit

2015-02-26 Thread hnlki
Hi, I estimated a tobit model tobit.fit<-tobit(y~x,left=0, right=Inf) (library "AER") or tobit2.fit<-censReg(y~x, left=0, right=Inf) (library"censReg") I' have estimated the partial effect at the average as: pea<-(pnorm((colMeans(x)%*%tobit.fit$coef[-1])/tobit.fit$scale))%*%tobit.fitt$coef[-1] a