gastonstat / plspm

R package plspm
62 stars 26 forks source link

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

Open KPHendriks opened 5 years ago

KPHendriks commented 5 years ago

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 commented 3 years ago

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

MRVN-1901 commented 2 years ago

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

fantasy521 commented 2 years ago

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