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 Path[k1, k2] <- path_lm$coef[-1, 1] #16

Open
KPHendriks opened this issue Feb 11, 2019 · 3 comments
Open

Error in Path[k1, k2] <- path_lm$coef[-1, 1] #16

KPHendriks opened this issue Feb 11, 2019 · 3 comments

Comments

@KPHendriks
Copy link

KPHendriks commented Feb 11, 2019

Dear Gaston et al.,

I am running a bootstrap analysis on my model, which runs fine without bootstrapping.
There are no NAs in my data.

But, when bootstrapping, I receive the following error with certain combination of input data:

Error in Path[k1, k2] <- path_lm$coef[-1, 1] :
number of items to replace is not a multiple of replacement length

Now I was thinking this might have to do with errors in the lm-function, from which there is no coefficient to be passed on to Path[k1, k2]. But when checking simply all combinations of linear model correlations "by hand", I can find no combinations of input data that result in any error.

Have you encountered this before? Is there a simple solution or workaround? If it makes stuff easier, I could share my data and code by email.
Thanks for your time! :-)

Kasper

@taowenmicro
Copy link

I have the same qusetion, hope some one could help us?

@MRVN-1901
Copy link

I have the same question... Would very much appreciate some help!

1 similar comment
@fantasy521
Copy link

I have the same question... Would very much appreciate some help!

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

4 participants