Thank you. I installed the data.table package and attempted to run a basic LPA model using tidyLPA and it still isn't working. I don't understand what the problem is.
Here is my code:
m1 <- msps1 %>%
select (RISK1_PHMS1, RISK1_PHMS4, RISK1_PHMS6, RISK1_PHMS8, RISK1_PHMS18, RISK1_PHMS20,
RISK_PHMS_SEVERITY2, RISK_PHMS_SOCIAL2, RISK_PHMS_PRACTICAL2, BF_KAB_GOODMOM2,
RISK_NOBF_FEAR2, RISK1_FF3, RISK1_FF5, RISK1_FF11, RISK_FF_SEVERITY2) %>%
estimate_profiles(2:5, variances="varying", covariances="varying")
Here is the error that I receive:
Error in estimate_profiles(., 2:5, variances = "varying", covariances = "varying") :
could not find function "estimate_profiles"