search for: bayesianbay

Displaying 10 results from an estimated 10 matches for "bayesianbay".

Did you mean: bayesiana
2002 Nov 27
6
Rbind help needed
Dear list I have a very simple question which is causing me problems! I have a matrix A and simply want to rbind this matrix together n times (n is a large number) How can I write this in R? I know I could do new<-rbind(z,z,z,...z) with z written n times but this will take forever as n is so large. Is there a simple way to write this? Cheers Mick
2002 Sep 30
5
Chi-Square Distribution Plots
Dear list I have a vector of values that allegedly have a chi-squared distribution. I want to create a plot that shows the values I have obtained, and the chi-squared distribution curve for the specified number of degrees of freedom to show what should have been obtained. At the moment I am plotting the values I have obtained as a histogram and somehow want to put on to this plot the
2002 Oct 14
2
Vector of quantiles
I have a quick question which is very simple but I seem to have a mental block! I'm using the pchisq function to specify a Chi Squared distribution with 9 df which I'm then going to use in the Kolmogorov-Smirnov Test to test some simulated values. so simply: pchisq(q, df=9) I know that q is the vector of quantiles but could anybody tell me what exactly this vector needs to contain?
2002 Sep 13
2
Sorting problem
Dear list I have a quick question which is probably very simple. I have a data frame, and want to sort the data by putting one column in to ascending order i.e becomes A B A B 1 0.5 3 0.4 2 0.9 1 0.5 3 0.4 4 0.7 4 0.7 2 0.9 I can't seem to find anything in the help about sorting data
2002 Sep 30
2
Memory problem
Dear list I am running a data simulation, which is needed to simulate up to a million pieces of data. I am getting the following memory error : Error: cannot allocate vector of size 11 Kb In addition: Warning message: Reached total allocation of 255Mb: see help(memory.size) I am running a PC with 256Mb RAM and R seems to be taking up the entire allocation and is still not able to do the
2002 Sep 03
1
Bindata package problems
Dear list I am having a couple of problems with the package 'bindata'. Having installed it using install.packages("bindata"), I am finding that when I load it up as a library I get the following errors: > library(bindata) Loading required package: e1071 Loading required package: mvtnorm Warning messages: 1: There is no package called `e1071' in: library(package, char
2002 Oct 25
1
Quantil-quantile plot help
Dear list I am using the qq.plot command to create quantile-quantile plots. The plot should display a 45 degree reference line upon which the points of the graph should fall if the two distributions being examined are roughly equal. If I try: x<-rchisq(100, df=6) qq.plot(x, dist="chisq", df=6) Then I get a quantile plot which has an intercept of roughly 1 when the line should be
2002 Sep 10
2
Problems with rbind
Dear list I have a simple question that I have a mental block on: Having used a loop (from i = 1 to n) to assign some numerical values to row.list[[i]] e.g. row.list[[3]]= 0 1 I am wanting to combine the output into a simple matrix. for example, if I combine the output from persons 1 to 3 into a matrix, I thought I could do : h<-rbind(row.list[[1]]:row.list[[3]]) However, I get the
2002 Sep 12
1
Problem with indexing
Dear List I am having a bit of a problem getting a program to work. For each of i=1 to n persons I have a matrix (different for each person) with m rows. What I want to do, is create m new data sets such that the first is made up of the first row for each person from the original matrices, the second contains the second row for each person from the original matrices etc etc up to the mth
2002 Oct 02
0
Alternative to slow double for() loop
Dear List Many thanks to those who helped me yesterday regarding possible ways to increase memory size in R. I have found the inefficient part of my program to be a double for() loop, and was wondering if anybody could suggest an alternative to using this double loop which would speed things up. The program looks like this: for (j in 1:m) { for (i in 1:n) {