This function generates analysis of panel data by iClick.plm. Declare either dep and indep or Formula.

1 | ```
iClick.plm2way(dep,indep,Formula,data,bootrep=99,ENDOG,IV,inst.method)
``` |

`dep` |
Column number of dependent variable; e.g., dep=data[,2]. Default is NULL |

`indep` |
Column number of Independent variables; e.g., indep=data[,c(3,5,8)]. Default is NULL |

`Formula` |
Equation input by explicit formula; e.g., y=x1+x2+x3.Default is NULL |

`data` |
A panel data class declared by plm. |

`bootrep` |
Replication number of bootstrapping for fixed effect, the default number is 99 to avoid unnecessary computation. |

`ENDOG` |
For 2SLS, declare endogeneous variables here; otherwise, keep it as default by NULL. |

`IV` |
For 2SLS, declare IV variables here; otherwise, keep it as default by NULL. |

`inst.method` |
For 2SLS, select estimation method,Details see package plm. |

GUI output button.

Ho Tsungwu <tsungwu@cc.shu.edu.tw>

Package plm.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ```
#unmark to run
#library("pdR")
#data("productivity")
#data2.plm=plm.data(productivity,index="state")
#head(data2.plm)
#formula2="log(y_gsp)~log(x1_hwy)+log(x2_water)"
#iClick.plm2way(Formula=formula2,data=data2.plm)
#data("crime")
#data3.plm= plm.data(crime, index = c("county"))
#head(data3.plm)
#formula3="log(crmrte)~log(prbarr)+log(polpc)+log(prbconv)
#+log(prbpris)+log(avgsen)+log(density)+log(wcon)+log(wtuc)
#+log(wtrd)+log(wfir)+log(wser) +log(wmfg)+log(wfed)
#+log(wsta)+log(wloc)+log(pctymle)+log(pctmin)+smsa+region"
#endo=c("log(prbarr)","log(polpc)")
#iv=c("log(taxpc)","log(mix)")
#iClick.plm1way(Formula=formula3,data=data3.plm,ENDOG=endo,IV=iv)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.