我正在运行以下以获得预测/拟合值:
library(RCurl)
data <- getURL("https://gist.githubusercontent.com/aronlindberg/a8a6644a639c35ceb9d9/raw/5b7c13bbcd439dacbca70e07c96b6c33804273d2/data.csv")
object <- read.csv(text = data)
mod <- nls(formula = "solution_complexity ~ problem_complexity", data=object, start = list(problem_complexity=0))
predict(mod)
然而,这只给了我一个单一的价值。我怎样才能得到所有的预测值?