0

I am using the praise.winsten package to run some panel time-series regression analysis in R and need a command function to tell me the number of observations in my model.

The base R command, 'nobs()', that I normally use for basic linear regression, 'lm()', doesn't seem to work for this.

Does anyone have any ideas?

I tried the 'nobs()' command, but that doesn't work for the prais package apparently

Progman
  • 16,827
  • 6
  • 33
  • 48
Dale
  • 1
  • Welcome to SO. Can you provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with any code you've tried so far and your data (or an example dataset)? – jrcalabrese Nov 20 '22 at 16:40
  • Sure... here is the code that I am using ---- mod1 <- prais_winsten(gini ~ edex, data = testdata, index = "year") summary(mod1) #total edu exp & dependent gini – Dale Nov 22 '22 at 02:56
  • Can you use `dput(testdata)` to provide your dataset? You can post the output from `dput()` as well as your model code in your original question as an edit. – jrcalabrese Nov 22 '22 at 03:52

0 Answers0