由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - An error message in R
相关主题
什么时候r里兴用=赋值的"&" vs "&&" in R
请问一个初步的R问题R:matrix
请教一个R的问题,quantcutR里为什么3.1+2.7==5.8是false?
有 SAS 或者 R 或者其他program的 code 能 查 fake email的不?a R question
请问如何用 R 产生一些变量问个R的小题目
请教SAS BASE的一题目R Matrix 初级问题
请教SAS一个赋值语句Random forests on imbalanced data (转载)
请教一个R的问题,谢谢!请教个R的问题
相关话题的讨论汇总
话题: error话题: t1话题: t2话题: message话题: what
进入Statistics版参与讨论
1 (共1页)
y*****w
发帖数: 1350
1
Error in if (t1 || t2) { : missing value where TRUE/FALSE needed
I got the above error message when running an R program. What does this
error mean, and how to debug the program?
Thanks!
y*****w
发帖数: 1350
2
Or, more specifically, what does t1 and t2 mean?
l****l
发帖数: 246
3
"if (t1 || t2) {" 这应该是你程序里的语句,你不知道t1和t2是什么?
这个错多半是因为t1或者t2没赋上值吧
y*****w
发帖数: 1350
4
Thank you for your response. t1 and t2 are not my 程序里的语句. I was
running a joint model of longitudinal and survival analysis using the R
package JM. I think t1 and t2 are some intermediate parameters that were
created when running the program, but I don't know what they are, and I don'
t know what "t1 || t2" means in the context. Thanks!

【在 l****l 的大作中提到】
: "if (t1 || t2) {" 这应该是你程序里的语句,你不知道t1和t2是什么?
: 这个错多半是因为t1或者t2没赋上值吧

l******n
发帖数: 9344
5
logical OR
t1,t2 are two expressions
You have to see what are the values of them to determine the err

don'

【在 y*****w 的大作中提到】
: Thank you for your response. t1 and t2 are not my 程序里的语句. I was
: running a joint model of longitudinal and survival analysis using the R
: package JM. I think t1 and t2 are some intermediate parameters that were
: created when running the program, but I don't know what they are, and I don'
: t know what "t1 || t2" means in the context. Thanks!

h***i
发帖数: 3844
6
t1 or t2 has no value.

【在 y*****w 的大作中提到】
: Error in if (t1 || t2) { : missing value where TRUE/FALSE needed
: I got the above error message when running an R program. What does this
: error mean, and how to debug the program?
: Thanks!

t******g
发帖数: 372
7
你可以traceback()
最终找到问题需要你去debug其他函数,纯r代码的functionname即可看到函数本体
如上面所说应该是没有赋值造成的,

don'

【在 y*****w 的大作中提到】
: Thank you for your response. t1 and t2 are not my 程序里的语句. I was
: running a joint model of longitudinal and survival analysis using the R
: package JM. I think t1 and t2 are some intermediate parameters that were
: created when running the program, but I don't know what they are, and I don'
: t know what "t1 || t2" means in the context. Thanks!

1 (共1页)
进入Statistics版参与讨论
相关主题
请教个R的问题请问如何用 R 产生一些变量
R这是逗我玩请教SAS BASE的一题目
这几行sas语句为什么总是有error?这个error是什么意思?怎样修请教SAS一个赋值语句
about Q70 of sas base请教一个R的问题,谢谢!
什么时候r里兴用=赋值的"&" vs "&&" in R
请问一个初步的R问题R:matrix
请教一个R的问题,quantcutR里为什么3.1+2.7==5.8是false?
有 SAS 或者 R 或者其他program的 code 能 查 fake email的不?a R question
相关话题的讨论汇总
话题: error话题: t1话题: t2话题: message话题: what