[R] Calculate weighted proportions for several factors at once

2018-03-22 Thread Striessnig, Erich
Hi, I have a grouped data set and would like to calculate weighted proportions for a large number of factor variables within each group member. Rather than using dplyr::count() on each of these factors individually, the idea would be to do it for all factors at once. Does anyone know how this

[R] pgmm - how to properly specify lag term?

2016-08-08 Thread Striessnig, Erich
Dear R-users, I want to reproduce "a dynamic panel data model, autoregressive of order 1, with fixed effects" that was originally estimated with 2-step GMM in STATA. Reproducing the model in R shouldn't be a big deal, however, unfortunately I don't have the original STATA code and the lagged

[R] How to set up a dynamic panel data model with pgmm from plm pacakge?

2016-07-27 Thread Striessnig, Erich
\n<< Hi, I am trying to set up a dynamic panel data model using the pgmm function from the plm package. The formula that I want to estimate is something like this: [y(t) - y(t-1)] ~ [x(t) - x(t-1)] + [x(t-1) - y(t-1)] where the lagged value of the dependent variable should be

[R] Significant codes in mtable

2011-02-02 Thread Striessnig, Erich
Hi all, Does anyone know a way to change the significant stars in mtable (package memisc)? The default is Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1, however I need it to be Signif. codes: 0 '***' 0.01 '**' 0.05 '*' 0.1 ' ' 1 Kind regards, Erich [[alternative