Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上我试图找到一种方法来从 logLik 对象中提取对数似然值的数值。
例如,输出: 'log Lik.' -72.0789 (df=2)是否可以仅“提取”-72.0789 数字以便将其分配到其他地方?
'log Lik.' -72.0789 (df=2)
只需用于[提取值。例如:
[
logLik(mod)[1] # [1] -10.44608
或者head:
head
head( logLik(mod) ) # [1] -10.44608