小编Dav*_*.F.的帖子

R 中的非线性回归,nls:奇异梯度

我想将我的数据拟合到已使用 Matlab 优化的特定函数中。

我收到以下错误:“警告消息:计算失败stat_smooth():奇异梯度”

请帮忙!这是我的 R 代码:

tibble
       x     y     SEM
 1     1 0.0342 0.00532
 2     3 0.0502 0.00639
 3     5 0.0700 0.0118 
 4    10 0.123  0.0269 
 5    20 0.154  0.0125 
 6    30 0.203  0.0190 
 7    40 0.257  0.0255 
 8    50 0.287  0.0266 
 9    60 0.345  0.0347 
10    90 0.442  0.0398 
11   120 0.569  0.0570 
12   180 0.726  0.0406 
13   240 0.824  0.0150 
14   360 0.868  0.00821
15  1440 0.890  0.0246 

tibble %>% 
  ggplot(aes(x, y)) +
  geom_point()+
  geom_errorbar(aes(ymin=y-SEM, …
Run Code Online (Sandbox Code Playgroud)

regression r nls ggplot2 ggplotly

0
推荐指数
1
解决办法
205
查看次数

标签 统计

ggplot2 ×1

ggplotly ×1

nls ×1

r ×1

regression ×1