predict | R Documentation |
The method computes the predicted outcome for each group with standard errors and confidence intervals.
## S3 method for class 'tlse'
predict(object, interval=c("none","confidence"),
se.fit=FALSE, newdata=NULL, level=0.95,
vcov.=NULL, ...)
object |
Object of class |
interval |
If set to |
se.fit |
Shoud the function returns the standard error of the predicted values? |
level |
The confidence interval level if interval is set to
|
newdata |
A |
vcov. |
An alternative function to compute the covariance
matrix of the least squares estimates. The default |
... |
Additional argument to pass to the |
data(simData)
mod <- setModel(Y~Z|~X1+X2, data=simData)
fit <- tlse(mod, seType="lm", vcov.=sandwich::vcovHC, type="HC")
pr <- predict(fit, interval="confidence")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.