为什么ns(0.8)或ns(c(0.8))返回NA/NaN/Inf in foreign function call (arg 1)? ns(c(0.8, 1.0))工作正常,但我想知道为什么只给1个值ns导致NA/NaN/Inf in foreign function call (arg 1)。 例子: > library(splines)
> ns(0.8)
Error in qr.def
#plotted log values of Re and C(d)
import numpy as np
import matplotlib.pyplot as plt
plt.plot([np.log(0.2),np.log(2), np.log(20), np.log(200), np.log(2000), np.log(20000)], [np.log(103), np.log(13