简体   繁体   English

如何在 R 中使用分类变量和连续变量执行潜在配置文件分析?

[英]How do I perform a Latent Profile Analysis with both categorical and continuous variables in R?

I have 4 continuous variables (masculinity, femininity, partner's masculinity, partner's femininity) and 2 categorical variables (gender identity, partner's gender identity) and I'd like to perform an LPA.我有 4 个连续变量(男性气质、女性气质、伴侣的男性气质、伴侣的女性气质)和 2 个分类变量(性别认同、伴侣的性别认同),我想执行 LPA。 In my readings, it seems possible to use both categorical and continuous indicators for an LPA, but I haven't found a resource for actually doing it.在我的阅读中,LPA 似乎可以同时使用分类指标和连续指标,但我还没有找到实际使用的资源。 I have attempted using the package tidyLPA but it doesn't allow me to specify which variables are categorical.我曾尝试使用 package tidyLPA,但它不允许我指定哪些变量是分类的。

  1. Am I correct to assume LPA can be used for both categorical and continuous indicators?我是否正确假设 LPA 可用于分类和连续指标?
  2. Is there a package in R that can handle this analysis? R 中是否有可以处理此分析的 package ?

Thank you!谢谢!

  1. Am I correct to assume LPA can be used for both categorical and continuous indicators?我是否正确假设 LPA 可用于分类和连续指标?

From the documentation of the package...从 package 的文档中......

Note that LPA works best with continuous variables (and, in some cases, ordinal variables), but is not appropriate for dichotomous (binary) variables.请注意,LPA 最适用于连续变量(在某些情况下,还有序数变量),但不适用于二分(二元)变量。

Since categorical in this sense is much closer to binary than ordinal (unless you failed to mention that you meant ordinal not categorical) odds are strong it's inappropriate.由于在这个意义上分类比序数更接近二元(除非你没有提到你的意思是序数不是分类)可能性很大,这是不合适的。

  1. Is there a package in R that can handle this analysis? R 中是否有可以处理此分析的 package ?

See the comment from Peter above but it appears tidyLPA just wraps mclust and that mclust is capable of different models including categorical variables see for example the EDDA example.请参阅上面 Peter 的评论,但似乎tidyLPA只是包装mclust ,并且mclust能够处理不同的模型,包括分类变量,例如EDDA示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 R中的潜在配置文件分析 - Latent Profile Analysis in R 如何制作同时包含连续变量和分类变量的 phylog.netic 树 - How can I make a phylogenetic tree with both continuous and categorical variables 如何创建Python子进程以在R中进行潜在类分析? - How to create a Python subprocess to do latent class analysis in R? R中具有类别和连续变量的GAM? - GAM in R with categorical AND continuous variables? 如何绘制具有连续变量和分类变量的二项式GLM的预测 - How to plot predictions of binomial GLM that has both continuous and categorical variables 如何获得连续变量和分类变量的描述性表? - How to get descriptive table for both continuous and categorical variables? 在 R 中,如何比较两个连续变量并在图表中指示两个分类变量 - In R, How can I compare two continuous variables and indicating two categorical variables in a chart 哪种类型的分析具有连续和分类预测因子的分类结果? - What type of analysis with categorical outcome with both continuous and categorical predictors? 如何在多重插补中同时使用分类和连续预测变量 [r] - How to use both categorical and continuous predictors in a multiple imputation [r] 如何按组重复对多个变量的分类变量的频率/表的分析 - How do I repeat the analysis of the frequency/table of categorical variables by group for multiple variables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM