简体   繁体   English

臭氧35数据集的吉布斯采样方案

[英]Gibbs sampling scheme on Ozone35 data set

I'm attempting to run a Gibbs sampling scheme on the data set Ozone35 from the BayesVarSel package in R. 我正在尝试在R中的BayesVarSel包的数据集Ozone35上运行Gibbs采样方案。

Here is the info on the data set Ozone35: 以下是有关数据集Ozone35的信息:

A data frame with 178 observations on the following 36 variables.

y Response = Daily maximum 1-hour-average ozone reading (ppm) at Upland, CA

x4 500-millibar pressure height (m) measured at Vandenberg AFB

x5 Wind speed (mph) at Los Angeles International Airport (LAX)

x6 Humidity (percentage) at LAX

x7 Temperature (Fahrenheit degrees) measured at Sandburg, CA

x8 Inversion base height (feet) at LAX

x9 Pressure gradient (mm Hg) from LAX to Daggett, CA

x10 Visibility (miles) measured at LAX

x4.x4 =x4*x4

x4.x5 =x4*x5

x4.x6 =x4*x6

x4.x7 =x4*x7

x4.x8 =x4*x8

x4.x9 =x4*x9

x4.x10 =x4*x1010 Ozone35

x5.x5 =x5*x5

x5.x6 =x5*x6

x5.x7 =x5*x7

x5.x8 =x5*x8

x5.x9 =x5*x9

x5.x10 =x5*x10

x6.x6 =x6*x6

x6.x7 =x6*x7

x6.x8 =x6*x8

x6.x9 =x6*x9

x6.x10 =x6*x10

x7.x7 =x7*x7

x7.x8 =x7*x8

x7.x9 =x7*x9

x7.x10 =x7*x10

x8.x8 =x8*x8

x8.x9 =x8*x9

x8.x10 =x8*x10

x9.x9 =x9*x9

x9.x10 =x9*x10

x10.x10 =x10*x10

I ran the following Gibbs sampling scheme to determine the optimal model: 我运行以下Gibbs采样方案来确定最佳模型:

Oz35.GibbsBvs<- GibbsBvs(formula="y~.", data=Ozone35, prior.betas="gZellner",
                     prior.models="Constant", n.iter=10000,     
init.model="null",n.burnin=100, time.test = FALSE)

However, I receive the error message "Error in plot.new() : figure margins too large" when I run the following code: 但是,当我运行以下代码时,收到错误消息“ plot.new()中的错误:图形边距太大”:

plotBvs(Oz35.GibbsBvs, option="conditional")

Any help would be much appreciated. 任何帮助将非常感激。

Are you running this in Rstudio? 您正在Rstudio中运行此程序吗? Sometimes you need to make the plot window larger to accommodate the graph. 有时您需要使绘图窗口更大以容纳图形。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM