Re: [R] Tobit model with panel data

2014-05-01 Thread phil
Hi Arne,

it's me once again. I just tried the same regression with less predictors
since so far I have used 16 for 52 observations. Having used less
predictors, R showed me some output for the command "summary()". Without
doubt, it was clear beforehand that this ratio between dependent and
independent variable(s) is not adequate. Haven't thought about that...

I think you will see it the same way.

Thanks in advance.

Regards,

Phil



--
View this message in context: 
http://r.789695.n4.nabble.com/Tobit-model-with-panel-data-tp4689760p4689847.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Tobit model with panel data

2014-05-01 Thread phil
Hi Arne,

thanks a lot for your reply, it was really helpful!

Now, after having managed to apply the censReg to my data, I get the
following error message when I enter the command "summary()":

Error in printCoefmat(coef(x, logSigma = logSigma), digits = digits) : 
  'x' must be coefficient matrix/data frame

What does that mean? Actually, I fear that maybe the number of observations
(total: 52; uncensored: 48) is too small. Is that possible?





--
View this message in context: 
http://r.789695.n4.nabble.com/Tobit-model-with-panel-data-tp4689760p4689846.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Tobit model with panel data

2014-05-01 Thread Arne Henningsen
Hi Phil

On 30 April 2014 23:06, phil  wrote:
> I just started to work with R a couple of weeks ago. Right now I would like
> to regress an independent variable on a couple of explanatory variables. The
> dependent variable is left censored in the sense that all negative values
> and zero are set equal to one.

That is most likely not a suitable data transformation.

> This is done because I want to take the logarithm which, as you all know,
> is only defined for values bigger than zero.
>
> However, what I don't know now is how to compute this on R. Does anybody
> know how to proceed? I already checked
> http://cran.r-project.org/web/packages/censReg/vignettes/censReg.pdf
>    but
> I am not able to apply the commands shown on page 8 correctly on my data
> set.
>
> Hence, I would really appreciate if somebody could give me a step-by-step
> instruction for my own dataset.

1st step: load the data set into R (see
http://cran.r-project.org/doc/manuals/r-release/R-data.html)

2nd step: use pdata.frame() or plm.data() to specify the panel
structure (see http://www.jstatsoft.org/v27/i02/)

3rd step: use censReg() to estimate the model (see
http://cran.r-project.org/web/packages/censReg/vignettes/censReg.pdf)

Please do read the posting guide http://www.R-project.org/posting-guide.html

Best regards,
Arne

-- 
Arne Henningsen
http://www.arne-henningsen.name

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Tobit model with panel data

2014-04-30 Thread phil
Hi all,

I just started to work with R a couple of weeks ago. Right now I would like
to regress an independent variable on a couple of explanatory variables. The
dependent variable is left censored in the sense that all negative values
and zero are set equal to one. This is done because I want to take the
logarithm which, as you all know, is only defined for values bigger than
zero. 

However, what I don't know now is how to compute this on R. Does anybody
know how to proceed? I already checked 
http://cran.r-project.org/web/packages/censReg/vignettes/censReg.pdf
   but
I am not able to apply the commands shown on page 8 correctly on my data
set.

Hence, I would really appreciate if somebody could give me a step-by-step
instruction for my own dataset.



--
View this message in context: 
http://r.789695.n4.nabble.com/Tobit-model-with-panel-data-tp4689760.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.