gnls(nlme)
gnls()所属R语言包:nlme
Fit Nonlinear Model Using Generalized Least Squares
使用广义最小二乘拟合非线性模型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function fits a nonlinear model using generalized least squares. The errors are allowed to be correlated and/or have unequal variances.
此功能适合使用广义最小二乘的非线性模型。允许相关的错误和/或有不平等的差异。
用法----------Usage----------
gnls(model, data, params, start, correlation, weights, subset,
na.action, naPattern, control, verbose)
参数----------Arguments----------
参数:model
a two-sided formula object describing the model, with the response on the left of a ~ operator and a nonlinear expression involving parameters and covariates on the right. If data is given, all names used in the formula should be defined as parameters or variables in the data frame.
两个片面的公式对象描述模型与~运营商和涉及右边的参数和协变量的非线性表达左侧的响应。 data如果,在公式中使用的所有名称应定义为数据框中的参数或变量。
参数:data
an optional data frame containing the variables named in model, correlation, weights, subset, and naPattern. By default the variables are taken from the environment from which gnls is called.
一个可选的数据框包含model命名的变量,correlation,weights,subset,naPattern。默认情况下,从gnls被称为环境变量。
参数:params
an optional two-sided linear formula of the form p1+...+pn~x1+...+xm, or list of two-sided formulas of the form p1~x1+...+xm, with possibly different models for each parameter. The p1,...,pn represent parameters included on the right hand side of model and x1+...+xm define a linear model for the parameters (when the left hand side of the formula contains several parameters, they are all assumed to follow the same linear model described by the right hand side expression). A 1 on the right hand side of the formula(s) indicates a single fixed effects for the corresponding parameter(s). By default, the parameters are obtained from the names of start.
形式p1+...+pn~x1+...+xm,或双面公式的形式p1~x1+...+xm的列表,每个参数可能不同型号,可选的双面线性公式。 p1,...,pn代表包括右侧的参数model和x1+...+xm定义的参数(线性模型公式的左侧包含几个参数时,他们都假定遵循相同的线性模型,右边表达式描述)。一个1(S)的公式右边显示相应的参数(S)的一个单一的固定效果。默认情况下,得到的参数从start的名称。
参数:start
an optional named list, or numeric vector, with the initial values for the parameters in model. It can be omitted when a selfStarting function is used in model, in which case the starting estimates will be obtained from a single call to the nls function.
一个可选的命名列表,或数字向量,参数model的初始值。它可以省略时selfStarting,在这种情况下,开始估计将获得从单一呼叫model功能nls功能,。
参数:correlation
an optional corStruct object describing the within-group correlation structure. See the documentation of corClasses for a description of the available corStruct classes. If a grouping variable is to be used, it must be specified in the form argument to the corStruct constructor. Defaults to NULL, corresponding to uncorrelated errors.
一个可选的corStruct对象,它描述的组内相关结构。可用corClasses类的描述,请参阅文件corStruct。如果是用于分组变量,它必须在form参数指定corStruct构造。默认NULL,相应的互不相关的错误。
参数:weights
an optional varFunc object or one-sided formula describing the within-group heteroscedasticity structure. If given as a formula, it is used as the argument to varFixed, corresponding to fixed variance weights. See the documentation on varClasses for a description of the available varFunc classes. Defaults to NULL, corresponding to homoscedastic errors.
一个可选的varFunc对象或片面的公式描述组内异方差结构。如果给出一个公式,它是用来作为的varFixed,相应的固定方差权重的参数。可用varClasses类的描述,请参阅文件varFunc。 NULL默认值,相应的同方差错误。
参数:subset
an optional expression indicating which subset of the rows of data should be used in the fit. This can be a logical vector, or a numeric vector indicating which observation numbers are to be included, or a character vector of the row names to be included. All observations are included by default.
一个可选的表达式的行子集data应在适合使用。这可以是一个逻辑向量,或一个数字的向量,被列入观察数字或字符向量的行名被列入。所有的意见,包括默认情况下。
参数:na.action
a function that indicates what should happen when the data contain NAs. The default action (na.fail) causes gnls to print an error message and terminate if there are any incomplete observations.
一个函数,它表示数据时,包含NA的,应该发生什么。默认动作(na.fail)导致gnls打印一个错误消息并终止,如果有任何不完整的意见。
参数:naPattern
an expression or formula object, specifying which returned values are to be regarded as missing.
表达或公式对象,指定返回值将被视为失踪。
参数:control
a list of control values for the estimation algorithm to replace the default values returned by the function gnlsControl. Defaults to an empty list.
估计算法的控制值的列表来替换默认的返回值的函数gnlsControl。默认为一个空列表。
参数:verbose
an optional logical value. If TRUE information on the evolution of the iterative algorithm is printed. Default is FALSE.
一个可选的逻辑值。如果TRUE迭代算法打印演化的信息。默认FALSE。
参数:...
some methods for this generic require additional arguments. None are used in this method.
这个通用的一些方法需要额外的参数。没有使用这种方法。
值----------Value----------
an object of class gnls, also inheriting from class gls, representing the nonlinear model fit. Generic functions such as print, plot and summary have methods to show the results of the fit. See gnlsObject for the components of the fit. The functions resid, coef, and fitted can be used to extract some of its components.
gnls类gls代表的非线性模型拟合,也继承一个类的对象。通用功能,如print,plot和summary方法来显示合适的结果。看到gnlsObject适合的组成部分。职能resid,coef,fitted可以用来提取其组成部分。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参考文献----------References----------
<code>correlation</code> argument are described in Box, G.E.P., Jenkins, G.M., and Reinsel G.C. (1994), Littel, R.C., Milliken, G.A., Stroup, W.W., and Wolfinger, R.D. (1996), and Venables, W.N. and Ripley, B.D. (1997). The use of variance functions for linear and nonlinear models is presented in detail in Carrol, R.J. and Rupert, D. (1988) and Davidian, M. and Giltinan, D.M. (1995).
Analysis: Forecasting and Control", 3rd Edition, Holden-Day.
Regression", Chapman and Hall.
for Repeated Measurement Data", Chapman and Hall.
"SAS Systems for Mixed Models", SAS Institute.
S-plus", 2nd Edition, Springer-Verlag.
in S and S-PLUS", Springer.
参见----------See Also----------
corClasses, gnlsControl, gnlsObject, gnlsStruct, predict.gnls, varClasses, varFunc
corClasses,gnlsControl,gnlsObject,gnlsStruct,predict.gnls,varClasses,varFunc
举例----------Examples----------
# variance increases with a power of the absolute fitted values[与拟合值绝对的权力变异增加]
fm1 <- gnls(weight ~ SSlogis(Time, Asym, xmid, scal), Soybean,
weights = varPower())
summary(fm1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|