on-internet
← Community

How to fix "Error: number of items to replace is not a multiple of replacement length" with NCT()?

Stack Overflow ·

I'm trying to compare two networks using NetworkComparisonTest::NCT(). I used a custom estimator function to impute and transform data prior to network estimation. The networks work well (i.e., in plotting and bootstrapping) until I use NCT, where I get the following error: > Error in diffedges.perm[i, ] <- abs(r1perm - r2perm)[upper.tri(abs(r1perm - : number of items to replace is not a multiple of replacement length I assume this has to do with having changed the dimensions of the data during network estimation. I'm not sure how to proceed. Below is a minimum, reproducible example: libraries

Comments

Sign in or sign up to comment and upvote.

No comments yet.