Add covariate expression to a function string
Add covariate expression to a function string
addCovariate(funstring, varName, covariate, theta, isLog)
funstring |
a string giving the expression that needs to be modified |
varName |
the variable to which the given string corresponds to in the model expression |
covariate |
the covariate expression that needs to be added (at the appropriate place) |
theta |
a list of names of the 'theta' parameters in the 'fit' object |
isLog |
a boolean signifying the presence of log-transformation in the funstring |
returns the modified string with the covariate added to function string
Vipul Mann, Matthew Fidler
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.