Re: [R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-14 Thread Tobias Christoph
Hey Peter, it is not necessary to use "factor(town)". I can just use "town" as the name of the towns is already numeric. Am 14.05.2017 um 20:24 schrieb peter dalgaard: On 14 May 2017, at 10:22 , Tobias Christoph <s3toc...@uni-bayreuth.de> wrote: Hey David,

[R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-11 Thread Tobias Christoph
Hey, I just have trouble adding a object specific time trend with the plm-package. I recieve the following error: * **"Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data, : invalid type for the variable 'time' "* I used the formula: / FE_trend<- plm(log(revenue) ~

Re: [R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-12 Thread Tobias Christoph
t; David L Carlson > Department of Anthropology > Texas A University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rui Barradas > Sent: Thursday, May 11, 2017 3:36 PM > To: Tobias Christoph <

Re: [R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-13 Thread Tobias Christoph
town1xyear is 1,2,3... when town== 1 and zero otherwise, repeat for town2xyear, where state == 2, etc. It is now clear? Sorry for my bad explanations. Toby Am 12.05.2017 um 23:23 schrieb peter dalgaard: >> On 12 May 2017, at 16:40 , Tobias Christoph <s3toc...@uni-bayreuth.de> wrote: &g

Re: [R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-13 Thread Tobias Christoph
4 variables: $ town : num 1 1 1 1 1 1 1 1 1 1 ... $ year : num 1 2 3 4 5 6 7 8 9 10 ... $ revenue: num 39.9 43.3 44 43.2 39.1 ... $ supply : num 1 1 1 1 1 1 35 101 181 323 ... *Pakete in Library* ‘C:/Users/Tobias Christoph/Documents/R/win-library/3.3’: assertthat Easy

Re: [R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-14 Thread Tobias Christoph
35 101 181 323 ... Hope this is helpful. Toby Am 13.05.2017 um 16:40 schrieb David Winsemius: >> On May 13, 2017, at 4:07 AM, Tobias Christoph <s3toc...@uni-bayreuth.de> >> wrote: >> >> Hey Peter, >> >> thank you. Yes, I want to have "yea

Re: [R] Error: invalid type (closure) for the variable 'time' - object specific trend

2017-05-11 Thread Tobias Christoph
Hey Duncan, thank you very much for your quick reply. _My data used:_ 1st column(town):1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,...,11 2nd column(year):1,2,3,4,5,6,7,8,9,10,11,12,1,2,3...,12 3rd column (revenue): 4th colum (supply): I have now renamed my colums and did the regression

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-31 Thread Tobias Christoph
wuhu, the plot is running now;) I had to put three brackets instead of two at the end of the formula. Thank you! Am 30.05.2017 um 21:29 schrieb Ismail SEZEN: > >> On 30 May 2017, at 21:44, Tobias Christoph <s3toc...@uni-bayreuth.de >> <mailto:s3toc...@uni-bayreuth.d

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
ning because the years as single numbers are already contained in my data-frame? Cheers, Toby Am 30.05.2017 um 18:26 schrieb Ismail SEZEN: >> On 30 May 2017, at 19:02, Tobias Christoph <s3toc...@uni-bayreuth.de> wrote: >> >> Hey Guys, >> >> I just try to dif

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
n the data-table? Cheers Am 30.05.2017 um 19:57 schrieb Ismail SEZEN: > >> On 30 May 2017, at 20:48, Tobias Christoph <s3toc...@uni-bayreuth.de >> <mailto:s3toc...@uni-bayreuth.de>> wrote: >> >> Hi Ismael, >> >> thanks for your quick reply. &

[R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Hey Guys, I just try to differentiate certain values in my plot by colour or symbol. I have panel data with three dimensions (number of stations, revenue, years). To integrate the third dimension (years) in the plot, I want to differentiate the values(number of stations, revenue) by a certain

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
6 50.0 220 Am 30.05.2017 um 20:30 schrieb Ismail SEZEN: On 30 May 2017, at 21:23, Tobias Christoph <s3toc...@uni-bayreuth.de <mailto:s3toc...@uni-bayreuth.de>> wrote: Ahh, okay. I think now I understand what you exactly mean. But the plot is stil not working /differentiat