R语言逻辑下标太长 怎么解决鸭
原代码:
#剂量反应meta分析
install.packages(c("mvmeta","dosresmeta"))
library("dosresmeta")
metadata <- read.table('metadata_new.txt',header = TRUE, sep = '\t',,na.strings="NA",fill = T)#读取表格
metadata
metadata[,c(3:6)] <- as.numeric(unlist(metadata[,c(3:6)]))#数据类型需要转换成numeric(数值型)

Fixed-effect dose-response model assuming linearity

lin.fixed <- dosresmeta(formula = logrr ~ dose, type = type, id = id, se = se, cases = cases, n = peryears, data = metadata, method = "fixed")
summary(lin.fixed)
报错:

lin.fixed <- dosresmeta(formula = logrr ~ dose, type = type, id = id, se = se, cases = cases, n = peryears, data = metadata, method = "fixed")
Error in y[id == j, ] : (subscript) logical subscript too long
summary(lin.fixed)
Error in summary(lin.fixed) : object 'lin.fixed' not found 🤣