I'm reaching out today to ask you a question on the tidyLPA. I've reached out before and you've helped me so well that I was able to submit a paper. A problem occurred as I was addressing the revision points, the reviewers told me to split a dataset I have into two and test the LPA to see if the profiles are replicated.
So I divided the files using the following code:
sample_size = floor(0.5*nrow(k))
set.seed(777)
picked = sample(seq_len(nrow(k)), size = sample_size)
k1 = k[picked,]
k2 = k[-picked,]
Then, ran the tidyLPA again and got the following error:
Error in MclustBootstrap(out$model, nboot = 100, type = "bs", verbose = FALSE) :
object must be of class 'Mclust' or 'densityMclust'
I wonder if the error is caused by the splitting of the dataset or from the tidyLPA itself.
Following up on this, I split file in SPSS and the following error keeps come up: Error in mdpwst[i]:mdpwfin[i] : NA/NaN argument
I'd really appreciate it if you could advise me on this issue. Thank you in advance for your help!
Best,
Julia