| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/systemfit.R |
| 3 |
\name{tidy.systemfit} |
| 4 |
\alias{tidy.systemfit} |
| 5 |
\alias{systemfit_tidiers} |
| 6 |
\title{Tidy a(n) systemfit object} |
| 7 |
\usage{ |
| 8 |
\method{tidy}{systemfit}(x, conf.int = TRUE, conf.level = 0.95, ...) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{x}{A \code{systemfit} object produced by a call to \code{\link[systemfit:systemfit]{systemfit::systemfit()}}.} |
| 12 |
|
| 13 |
\item{conf.int}{Logical indicating whether or not to include a confidence |
| 14 |
interval in the tidied output. Defaults to \code{FALSE}.} |
| 15 |
|
| 16 |
\item{conf.level}{The confidence level to use for the confidence interval |
| 17 |
if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1. |
| 18 |
Defaults to 0.95, which corresponds to a 95 percent confidence interval.} |
| 19 |
|
| 20 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 21 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 22 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 23 |
argument has a default value, the default value will be used. |
| 24 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 25 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 26 |
\itemize{ |
| 27 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 28 |
it will be ignored. |
| 29 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 30 |
will be ignored. |
| 31 |
}} |
| 32 |
} |
| 33 |
\description{ |
| 34 |
Tidy summarizes information about the components of a model. |
| 35 |
A model component might be a single term in a regression, a single |
| 36 |
hypothesis, a cluster, or a class. Exactly what tidy considers to be a |
| 37 |
model component varies across models but is usually self-evident. |
| 38 |
If a model has several distinct types of components, you will need to |
| 39 |
specify which components to return. |
| 40 |
} |
| 41 |
\details{ |
| 42 |
This tidy method works with any model objects of class \code{systemfit}. |
| 43 |
Default returns a tibble of six columns. |
| 44 |
} |
| 45 |
\examples{ |
| 46 |
\dontshow{if (rlang::is_installed("systemfit")) withAutoprint(\{ # examplesIf} |
| 47 |
|
| 48 |
set.seed(27) |
| 49 |
|
| 50 |
# load libraries for models and data |
| 51 |
library(systemfit) |
| 52 |
|
| 53 |
# generate data |
| 54 |
df <- data.frame( |
| 55 |
X = rnorm(100), |
| 56 |
Y = rnorm(100), |
| 57 |
Z = rnorm(100), |
| 58 |
W = rnorm(100) |
| 59 |
) |
| 60 |
|
| 61 |
# fit model |
| 62 |
fit <- systemfit(formula = list(Y ~ Z, W ~ X), data = df, method = "SUR") |
| 63 |
|
| 64 |
# summarize model fit with tidiers |
| 65 |
tidy(fit) |
| 66 |
tidy(fit, conf.int = TRUE) |
| 67 |
\dontshow{\}) # examplesIf} |
| 68 |
} |
| 69 |
\seealso{ |
| 70 |
\code{\link[=tidy]{tidy()}}, \code{\link[systemfit:systemfit]{systemfit::systemfit()}} |
| 71 |
} |
| 72 |
\concept{systemfit tidiers} |
| 73 |
\value{ |
| 74 |
A \code{\link[tibble:tibble]{tibble::tibble()}} with columns: |
| 75 |
\item{conf.high}{Upper bound on the confidence interval for the estimate.} |
| 76 |
\item{conf.low}{Lower bound on the confidence interval for the estimate.} |
| 77 |
\item{estimate}{The estimated value of the regression term.} |
| 78 |
\item{p.value}{The two-sided p-value associated with the observed statistic.} |
| 79 |
\item{std.error}{The standard error of the regression term.} |
| 80 |
\item{term}{The name of the regression term.} |
| 81 |
|
| 82 |
} |