VAR Estimation Results to Latex by stargazer
up vote
1
down vote
favorite
I am trying to use the package Stargazer to "export" my estimation results into LaTeX code. I have read the stargazer manual and even tried to export selected rows without any luck. There are a lot of output for the package to handle.
I create an object
Summary <- summary(VAR(Vektorer, p=1, type="const", ic = c("AIC", "HQ", "SC", "FPE")))
Then, I use the stargazer package
stargazer(Summary)
and get the following error:
Error: Unrecognized object type.
Anyone familiar with this object type and how to export it into LaTeX code? I guess there re other packages which are more suitable for the object type. Unfortunately I am not very familiar with exporting R outputs into LaTeX.
r latex stargazer
add a comment |
up vote
1
down vote
favorite
I am trying to use the package Stargazer to "export" my estimation results into LaTeX code. I have read the stargazer manual and even tried to export selected rows without any luck. There are a lot of output for the package to handle.
I create an object
Summary <- summary(VAR(Vektorer, p=1, type="const", ic = c("AIC", "HQ", "SC", "FPE")))
Then, I use the stargazer package
stargazer(Summary)
and get the following error:
Error: Unrecognized object type.
Anyone familiar with this object type and how to export it into LaTeX code? I guess there re other packages which are more suitable for the object type. Unfortunately I am not very familiar with exporting R outputs into LaTeX.
r latex stargazer
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to use the package Stargazer to "export" my estimation results into LaTeX code. I have read the stargazer manual and even tried to export selected rows without any luck. There are a lot of output for the package to handle.
I create an object
Summary <- summary(VAR(Vektorer, p=1, type="const", ic = c("AIC", "HQ", "SC", "FPE")))
Then, I use the stargazer package
stargazer(Summary)
and get the following error:
Error: Unrecognized object type.
Anyone familiar with this object type and how to export it into LaTeX code? I guess there re other packages which are more suitable for the object type. Unfortunately I am not very familiar with exporting R outputs into LaTeX.
r latex stargazer
I am trying to use the package Stargazer to "export" my estimation results into LaTeX code. I have read the stargazer manual and even tried to export selected rows without any luck. There are a lot of output for the package to handle.
I create an object
Summary <- summary(VAR(Vektorer, p=1, type="const", ic = c("AIC", "HQ", "SC", "FPE")))
Then, I use the stargazer package
stargazer(Summary)
and get the following error:
Error: Unrecognized object type.
Anyone familiar with this object type and how to export it into LaTeX code? I guess there re other packages which are more suitable for the object type. Unfortunately I am not very familiar with exporting R outputs into LaTeX.
r latex stargazer
r latex stargazer
asked Dec 3 '15 at 18:39
laviola
62
62
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
First, I assume that you are using the VAR function from ´vars´. If so, do you really want to extract all the information at once from the summary function? Instead you could chose which information to present by Summary$varresult$´variable´
.
Instead of using stargazer, I used xtable to produce the LaTeX code
library(vars)
library(xtable)
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
tmp <- summary(model)
xtable(tmp$varresult$A)
xtable(tmp$varresult$B)
Also note all other possible output from tmp$
.
add a comment |
up vote
1
down vote
The problem is clear in the error message; stargazer does not understand the type of object you are passing it.
One option is to pass the underlying lm objects, which stargazer does know what to do with. Something along the lines of:
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
stargazer::stargazer(model$varresult$A, model$varresult$B)
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
First, I assume that you are using the VAR function from ´vars´. If so, do you really want to extract all the information at once from the summary function? Instead you could chose which information to present by Summary$varresult$´variable´
.
Instead of using stargazer, I used xtable to produce the LaTeX code
library(vars)
library(xtable)
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
tmp <- summary(model)
xtable(tmp$varresult$A)
xtable(tmp$varresult$B)
Also note all other possible output from tmp$
.
add a comment |
up vote
2
down vote
First, I assume that you are using the VAR function from ´vars´. If so, do you really want to extract all the information at once from the summary function? Instead you could chose which information to present by Summary$varresult$´variable´
.
Instead of using stargazer, I used xtable to produce the LaTeX code
library(vars)
library(xtable)
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
tmp <- summary(model)
xtable(tmp$varresult$A)
xtable(tmp$varresult$B)
Also note all other possible output from tmp$
.
add a comment |
up vote
2
down vote
up vote
2
down vote
First, I assume that you are using the VAR function from ´vars´. If so, do you really want to extract all the information at once from the summary function? Instead you could chose which information to present by Summary$varresult$´variable´
.
Instead of using stargazer, I used xtable to produce the LaTeX code
library(vars)
library(xtable)
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
tmp <- summary(model)
xtable(tmp$varresult$A)
xtable(tmp$varresult$B)
Also note all other possible output from tmp$
.
First, I assume that you are using the VAR function from ´vars´. If so, do you really want to extract all the information at once from the summary function? Instead you could chose which information to present by Summary$varresult$´variable´
.
Instead of using stargazer, I used xtable to produce the LaTeX code
library(vars)
library(xtable)
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
tmp <- summary(model)
xtable(tmp$varresult$A)
xtable(tmp$varresult$B)
Also note all other possible output from tmp$
.
answered Dec 3 '15 at 22:58
Pierre
265210
265210
add a comment |
add a comment |
up vote
1
down vote
The problem is clear in the error message; stargazer does not understand the type of object you are passing it.
One option is to pass the underlying lm objects, which stargazer does know what to do with. Something along the lines of:
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
stargazer::stargazer(model$varresult$A, model$varresult$B)
add a comment |
up vote
1
down vote
The problem is clear in the error message; stargazer does not understand the type of object you are passing it.
One option is to pass the underlying lm objects, which stargazer does know what to do with. Something along the lines of:
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
stargazer::stargazer(model$varresult$A, model$varresult$B)
add a comment |
up vote
1
down vote
up vote
1
down vote
The problem is clear in the error message; stargazer does not understand the type of object you are passing it.
One option is to pass the underlying lm objects, which stargazer does know what to do with. Something along the lines of:
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
stargazer::stargazer(model$varresult$A, model$varresult$B)
The problem is clear in the error message; stargazer does not understand the type of object you are passing it.
One option is to pass the underlying lm objects, which stargazer does know what to do with. Something along the lines of:
X <- cbind("A"=rnorm(100, 50), "B"=rnorm(100, 600, 50))
model <- VAR(X, p=1, type = "const", ic = c("AIC", "HQ", "SC", "FPE"))
stargazer::stargazer(model$varresult$A, model$varresult$B)
answered Aug 29 '17 at 8:35
t-student
19510
19510
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f34073708%2fvar-estimation-results-to-latex-by-stargazer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown