r - Panel data: dealing with lagging and binary dependent variable with plm -


I am trying to run a logical regression submitted with panel data and a binary dependent variable Since I wanted to leave behind some variables, I used the PLM package to make them. When I tried to do it in other ways, I could not interrupt or embed the problem, because this is the panel data

  hybrids & lt; -pdata.frame (deductible, c) ("state", "year")) and <- 

I wanted to put everyone, but I did not know what I was doing. Before physics original figure frame (hybrid) I run pool analysis. I am pretty sure that I do not need it, but I I am a visual person, and want to verify the format of the data before running any analysis.

From the output given below, it seems that everything is done correctly.

head (intervals (hybrid accumulation $ ishing, 1)) < / P>

Alamma - 1990 Allama-2000 Alamma-2001 Alamma-2002 Alamma-200 3 Alamma-2002 <512294 55378 26982 28264 2566

Head (Hybrid Accumulation $ Esapendending)

Alamma -1999 Alamba-2000 Alamma-2001 Alamma -2002 Alamba -2003 Alamma-2002

  58294 55378 26982 28264 2566 26906 < / Code> 

My problem is that when I get a date In this frame, I am trying to do this interval variable as a vector, so in this way,

  hybrid products $ lagee & lt ;-( intervals (hybrid accumulation $ eespending, 1) )  

does this (when I call names in the dataframe, they are included), but then I can not see the dataframe. I say:

Error in edit.data.frame (get (subx, envir = parent), title = subx, ...): only the vector and factor elements can handle

How can I solve this so that I can see the data frame before running the analysis? I want to see it, because it seems that I would like to use glm instead of plm (pooling) for this analysis because the dependent variable is a binary variable and PLM does not support these DVs

I am giving problems for a while now

col1 ST YR EELAG EE

[1,] 1 1 NA 58294

[2, ] [5,] 1 5 28264] [5,] [5,] 1 5, 5, 8, 28264 2566

[6,] 1 6 2566 26 9 6

[7,] 1 7 26 9 06 29466

[8,] 2 1 NA 355

[9,] 2 2 355 25 9

[10,] 2 3 25 9 224

[11,] 2 4 224 217

>

[12,] 2 5 217 241

13, 2 6 241 231

[14,] 2 7 231 231

[15,] 3 1 NA 5111

[16,] 3 2 5111 3753

[17,] 3 3 3753 2211

[18,] 3 4 2211 1452

[ 19,] 3 5 1452 2913 [22,] 4 1 NA 1597

[20,] 3 6 2913 3128

[21,] 3 7 3128 7132

[23,] 4 2 1597 905

intervals returns a time series object

  hybrid expenditure $ lagee & lt ;-( as.vector (intervals (hybrid accumulation $ Ishpending, 1))  

work?


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -