如何使用从R导出的P值获得干净的excel数据集 res <- rcorr(as.matrix(df), type = c("pearson")) 我已经使用上面的代码在我的数据中找到了所有变量的P值但是,我对将这些调查结果导出到excel表格中很感兴趣。我已经使用以下代码完成了这项工作: write.
我已经从excel导入了一个数据集,我想运行一个逻辑回归,但是SAS不识别连续变量。这就是我使用的代码:model chd = tobacco ldl typeaage famhist;我在日志中得到以下消息:
"Variable tobacco should be either numeric or specified in the CLASSstatemen