Comments (1)
Just saw this issue after reading your comment. collapse::fdiff(x, g = group, t = time, rho = param)
deals with this if the time index is integer. Otherwise, you can use collapse::timeid(time)
, which creates integer steps from any numeric vector based on the greatest common divisor.
library(collapse)
head(D(wlddev[-3, ], by = ~ iso3c, t = ~ year))
#> iso3c year D1.decade D1.PCGDP D1.LIFEEX D1.GINI D1.ODA D1.POP
#> 1 AFG 1960 NA NA NA NA NA NA
#> 2 AFG 1961 0 NA 0.516 NA 115310005 172437
#> 4 AFG 1963 NA NA NA NA NA NA
#> 5 AFG 1964 0 NA 0.492 NA 58200012 201576
#> 6 AFG 1965 0 NA 0.485 NA 45919983 211539
#> 7 AFG 1966 0 NA 0.482 NA -30230011 218516
head(with(wlddev[-3, ], fdiff(LIFEEX, 1, 1, iso3c, year)))
#> [1] NA 0.516 NA 0.492 0.485 0.482
Created on 2023-02-26 by the reprex package (v2.0.1)
from prais.
Related Issues (14)
- Including categorical variables in the prais.winsten model HOT 2
- Robust standard errors HOT 1
- Not receiving an R2 HOT 2
- Using collapse to speed up prais? HOT 1
- Return "lm" object from prais_winsten() HOT 2
- Prediction with results from prais-winsten HOT 3
- v1.1.2 Returns Error When Using Lagged Variables HOT 5
- Usage with plm function possible? HOT 4
- Feature request: Add standard errors to predictions
- Feature request: Estimating PW based on plm objects
- Feature request: Publishable regression output HOT 2
- Feature request: Add p-value of the D-W test HOT 1
- Durbin-Watson Statistic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prais.