Automatically place a set of knots evenly through covariate values
通过协值自动均匀地放置了一套结
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a univariate array of covariate values, places a set of knots for a regression spline evenly through the covariate values.
鉴于单变量的协值数组,放在一个回归样条均匀地通过一组结协变量的值。
用法----------Usage----------
参数----------Arguments----------
参数:x
array of covariate values (need not be sorted).
阵列的协变量的值(不排序)。
参数:nk
integer indicating the required number of knots.
整数,表示所需的节数。
Details
详情----------Details----------
Places knots evenly throughout a set of covariates. For example, if you had 11 covariate values and wanted 6 knots then a knot would be placed at the first (sorted) covariate value and every second (sorted) value thereafter. With less convenient numbers of data and knots the knots are placed within intervals between data in order to achieve
邻居节,均匀分布在整个一组共变数。例如,如果你有11个协值,并希望6节,然后将一个结放在第一(排序)协价值和此后每一秒值(排序)。不太方便的数字数据和节的节被放置在数据之间的间隔,以达到
值----------Value----------
An array of knot locations.
结位置的数组。
作者(S)----------Author(s)----------
Simon N. Wood <a href="mailto:simon.wood@r-project.org">simon.wood@r-project.org</a>