Displaying 2 results from an estimated 2 matches for "callrates".
2007 Nov 26
3
determine the number of digits printed into graph with "text(...)"
...ot;text(...)" - see code
below: "fraction" is my number. I wish to print only two digits of the
number and struggle to do this... options(digit=3) does not work...
Thank you for your suggestions! Cheers, Georg.
**********************************
Georg Ehret
Johns Hopkins
Baltimore
callrates<-read.table("RSG",col.names=c("variant","callrate"))
hist(callrates[,2],breaks=100)
fraction<-nrow(callrates[callrates$callrate>=0.9,])/nrow(callrates)
hist(callrates[,2],breaks=100)
text(0.4,500,"proportion of callrates >= 0.9:")
text(0.4,450,fra...
2009 Mar 23
2
error statement: missing value where TRUE/FALSE needed
Hi list,
I want to try Gibbs sampling as a method of estimating a markov-switching
model of a mean-deviating, pth-order autoregressive process with time
varying transition probabilities via R and am using a code originally
written by another person; I attach the useful pdf document explaining the
code. When I run the code, I get an error message:
Error in if (r < vQ[i]) { : missing value