iClick_plm2way: iClick GUI for two-way panel data analysis, based on package...

iClick.plm2wayR Documentation

iClick GUI for two-way panel data analysis, based on package plm.

Description

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

Usage

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

Arguments

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.

Value

GUI output button.

Author(s)

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

See Also

Package plm.

Examples

#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)


tsungwu/pdR documentation built on June 14, 2022, 6:43 a.m.