Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in 2:last_model_number_predictors : argument of length 0 #22

Closed
peteralynn opened this issue Aug 22, 2019 · 3 comments
Closed

Error in 2:last_model_number_predictors : argument of length 0 #22

peteralynn opened this issue Aug 22, 2019 · 3 comments

Comments

@peteralynn
Copy link

Hello,
I am getting the error "Error in 2:last_model_number_predictors : argument of length 0" in trying to create tables for a relatively simple model.

I see that this is essentially the same problem as was reported here, #13 , but the proposed solutions therein do not help. In addition, I cannot install the development version, as I get the following error:

Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL 'https://api.github.com/repos/dstanley4/apaTables/tarball/master'

Any thoughts? I have some existing tables that apaTables made with which I'd like to keep the present tables consistent; your assistance would be much appreciated.

Thanks,
Peter

@peteralynn
Copy link
Author

...let's just say I figured this one out on my own.
(I was feeding it a summary object rather than the lm object itself.)

@homataheri
Copy link

Hi,

I experienced the same error while reporting a clustered logistic regression.

model1 <- miceadds::glm.cluster(data=df_clean3, formula=recall ~ log(Population)+NoComplaintsReported+NoCrashesFiresReported+NoInjuriesReported+NoFatalityIncidentsReported+NoOtherFailuresReported+YearOpen+label, cluster="label", family="binomial")

apa.reg.table(model1)

Error: Error in 2:last_model_number_predictors : argument of length 0

May I have your assistance on this issue?

@dstanley4
Copy link
Owner

dstanley4 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants