我正在研究偏度和峰度对Pearson校正的影响,以进行二元相关以限制范围。目前,我正在使用R和“ rcorrvar”,因为它应该允许我生成具有特定偏斜和峰度的相关向量。当我按以下方式运行
rcorrvar(n = 100, k_cont = 2, k_CAT = 2,pois = 2, k_nb = 0,
method = c("Fleishman", "Polynomial"), means = 0, vars = 1,
skews = 2,skurts = 4,fifths = NULL, sixths = NULL,
Six = list(), marginal = list(), support = list(), nrand = 100,
lam = NULL, size = NULL, prob = NULL, mu = NULL, Sigma = NULL,
rho = NULL, cstart = NULL, seed = 1234, errorloop = FALSE,
epsilon = 0.001, maxit = 1000, extra_correct = TRUE)
Error in rcorrvar(n = 100, k_cont = 2, k_CAT = 2, pois = 2, k_nb = 0, :
unused arguments (k_CAT = 2, pois = 2)
如何纠正这些错误?
答案 0 :(得分:0)
假设您使用的rcorrvar函数来自SimMultiCorrData包,则好像您可能拼错了这两个变量一样-它们应该分别为k_cat
和k_pois
。
请注意,R的变量区分大小写。