Displaying 20 results from an estimated 500 matches similar to: "about MCMC pack"
2006 Aug 11
2
about MCMC pack again...
Hello, thank you very much for your previous answers about the C++ code.
I am interested in the application of the Gibbs Sampler in the IRT
models, so in the function MCMCirt1d and MCMCirtkd. I've found the C++
source codes, as you suggested, but I cannot find anything about the
Gibbs Sampler. All the files are for the Metropolis algorithm.
Maybe I am not able to read them very well, by the
2006 Aug 14
0
missing data treatment in MCMC pack
Hello,
does anyone know something about missing data in the MCMC pack?
thank you,
Mariagiulia
Mariagiulia Matteucci
Dipartimento di Scienze Statistiche ?Paolo Fortunati?
Universit? di Bologna
Via Belle Arti, 41
40126 Bologna (ITALY)
e-mail: matteucci at stat.unibo.it
TEL: +39 051 264182
FAX: +39 051 232153
2006 Dec 07
0
Help to understand an Error using summary to an mcmc object
Hi,
I used the MCMCirtKd function of MCMCpack:
posterior2 <- MCMCirtKd(data, dimensions = 2,
+ burnin = 5000, mcmc = 50000, thin = 10,
+ verbose = 10000, B0 = .25, store.item = TRUE, item.constraints =
beta.constraints)
And after apply the comand summary() I got some erros and warnings that I
could not understand:
summary.posterior2 <- summary(posterior2)
2010 May 20
1
Geneland error on unix: Error in MCMC(........ :, unused argument(s) (ploidy = 2, genotypes = geno)
I am receiving the above error ( full r session output below) the
script runs OK in windows. and "genotypes" and "ploidy" are both
correct arguments
any suggestions would be most welcome
Nevil Amos
MERG/ACB
Monash University School of Biological Sciences
> library(Geneland)
Loading required package: RandomFields
Loading required package: fields
Loading required
2010 Sep 29
1
sample exponential r.v. by MCMC
Dear R users,
I am leaning MCMC sampling, and have a problem while trying to sample
exponential r.v.'s via the following code:
samp <- MCMCmetrop1R(dexp, theta.init=1, rate=2,
mcmc=5000, burnin=500,
thin=10, verbose=500, logfun=FALSE)
I tried other distribtions such as Normal, Gamma with shape>1, it works
perfectly fine. Can someon
2007 Mar 09
1
MCMC logit
Hi,
I have a dataset with the binary outcome Y(0,1) and 4 covariates (X1,X@,X#,X$). I am trying to use MCMClogit to model logistic regression using MCMC. I am getting an error where it doesnt identify the covariates ,although its reading in correctly. The dataset is a sample of actual dataset. Below is my code:
> #######################
>
>
> #retreive data
> # considering four
2008 Oct 18
1
Fehler in x$terms : $ operator is invalid for atomic vectors
Dear All
I try to use your R package MCMCpack and I have encountered the following problem:
The following code works fine:
library(MCMCpack)
line <- list(X = c(-2,-1,0,1,2), Y = c(1,3,3,3,5))
posterior1 <- MCMCregress(X~Y, data=line)
summary(posterior1)
But as long as I try the following lines
library(MCMCpack)
line <- list(X = c(-2,-1,0,1,2), Y = c(1,3,3,3,5))
2007 Feb 17
0
MCMC Pack Crashes R-GUI session (PR#9516)
Full_Name: Lloyd Lubet
Version: 2.4.1rc
OS: XP
Submission from: (NULL) (65.19.17.17)
Dear Andrew,
I am trying to learn gibbs sampling and Metropolis.
When I run your gibbs version of multiple linear regression my session crashes.
I have trimmed the dataframe and set my object.size = 1 gigB.
Despite my best efforts it still crashes while advising me to contact the MCMC
Pack developement team.
2011 Jun 05
1
conditions simpler way
Dear All,
I have a MCMC result in x1. I was wondering if there is a simpler, more
elegant way of evaluating the estimate of an integral then this (I am
pretty sure there is):
Also if I want to count the x's say -1<x<2 but not the ones in the burn
in period.
[code]
z <- -2
burnin <- 2000
int1 <-
2011 Feb 24
2
MCMCpack combining chains
Deal all, as MCMClogit does not allow for the specification of several chains, I have run my model 3 times with different random number seeds and differently dispersed multivariate normal priors.
For example:
res1 = MCMClogit(y~x,b0=0,B0=0.001,data=mydat, burnin=500, mcmc=5500, seed=1234, thin=5)
res2 = MCMClogit(y~x,b0=1,B0=0.01,data=mydat, burnin=500, mcmc=5500, seed=5678, thin=5)
res3 =
2004 Nov 19
2
Plotting averages of y per x
Hello!
I often plot average of y instead of all y values, since one can easily
see the trend if there is to many points and/or x might be like 1, 2, 3,
4, 5, ... and you might get a cloud (which can also be informative)
and/or columns of points.
Anyway, learning with R i get stucked. I have the data in table
burnins1, with the following names:
names(burnins1)
[1] "Model"
2005 Nov 09
2
About: Error in FUN(X[[1]], ...) : symbol print-name too long
Hi,
I??m trying to use the Win2BUGS package from R and I have a similar problem
that reurns with the message:
Error in FUN(X[[1]], ...) : symbol print-name too long
But, there is no stray ` character in the file ( Sugestions given by: Duncan
Temple Lang <duncan>
Date: Mon, 26 Sep 2005 07:31:08 -0700 )
The progam in R is:
library(R2WinBUGS)
library(rbugs)
dat <-
2008 Aug 22
2
WinBUGS with R
Dear Users,
I am new to both of things, so do not blame me too much...
I am busy with semiparametric regression and use WinBUGS to sample
posteriors.
The code to call Winbugs is as follows:
data <- list("y","X","n","m") #My variables
inits.beta <- rep(0,K)
inits.beta0 <- 0
inits <-
2003 Apr 18
1
MCMCpack gelman.plot and gelman.diag
Hi,
A question. When I run gelman.diag and gelman.plot
with mcmc lists obtained from MCMCregress, the results are following.
> post.R <- MCMCregress(Size~Age+Status, data = data, burnin = 5000, mcmc = 100000,
+ thin = 10, verbose = FALSE, beta.start = NA, sigma2.start = NA,
+ b0 = 0, B0 = 0, nu = 0.001, delta = 0.001)
> post1.R <- MCMCregress(Size~Age+Status, data
2005 Jul 13
1
problems with MNP
Hi all,
Does anybody have a hint on what may be going wrong in this R code? I
mimic the sample code from the MNP developers but I seem unable to get the
choice specific variables right.
Thanks,
Joan Serra
> rm(list=ls())
> library(foreign)
> small<-read.spss("small.sav")
Warning message:
small.sav: Unrecognized record type 7, subtype 13 encountered in system
file.
>
2013 Mar 28
3
problem with plots with short example.
i am having problem running my own data. yesterday it was working just fine. today it is not. this is the code i was using as an example to follow. this code ALSO worked just fine yesterday, and is no longer working at all. i suspect it is a problem with either my computer or the software, at this point. if THIS won't even run.... something is wrong.
i can assure you this isn't
2012 Jan 24
2
Null models of species co-occurrence
I am currently testing species co-occurrence patterns using null models and
the oecosimu() function within the vegan() package. My issue is that none of
the methods appear to be the ones that I want. The methods listed are r0,
r1, r2, r2dtable, swap, tswap. However, I want to know how to go about
implementing fixed row algorithms, as suggested in Gotelli 2000 in Ecology.
Also, the null models
2010 Sep 07
1
problems with siar package
Hi, my name is Julio, I'm trying to run a script, specifically with the siar
package on R (I have attached the script) but the program collapses on
during the run. The error message says:
*** caught segfault ***
address 0xb31941cc, cause 'memory not mapped'
Traceback:
1: .C("siarmcmcv4", as.integer(numdata), as.integer(numsources),
as.integer(numiso),
2012 Feb 01
1
problem working directory WinBUGS using R
Hi,
I am trying to use WinBUGS using R, but i am having some problems using
bugs function:
out <- bugs(data = win.data, inits = inits, parameters.to.save = params,
model.file = "model.txt",
n.thin = nt, n.chains = nc, n.burnin = nb, n.iter = ni, debug = TRUE, DIC =
TRUE, working.directory = getwd())
ls()
WinBUGS file is in working directory=D:/Line/documents but R looks for
2010 Sep 09
1
R2WinBugs problem
I'm having difficulty running R2WinBugs on a setup that previously
worked for me (Dell Laptop, Windows XP service pack 3, R 2.11.1, WinBugs
1.43) . When I issue the following command
smds.sim <- bugs (data, inits, parameters, "SMDSbrandLoc2.bug",
debug = T,
n.thin = n.thin,
n.chains = n.chains,
n.burnin = n.burnin,
n.iter = n.iter)
I get the following error in R