Can anyone help?
Thanks in advance Emma
--
View this message in context:
http://r.789695.n4.nabble.com/more-boa-plots-questions-tp3330312p016.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https:/
I have MCMC output chains A and B for example, I want to produce trace plots
for them using the boa command line...
#loads boa
boa.init()
#reads in chains
boa.chain.add(boa.importMatrix('A'), 'A')
boa.chain.add(boa.importMatrix('B'), 'B')
#plot trace plot
problems arise here!
I know I can get tra
Many thanks for your response, and I am sorry I did not post correctly.
I have found dev.copy2eps() useful.
Emma
--
View this message in context:
http://r.789695.n4.nabble.com/boa-library-and-plots-tp3322508p3330299.html
Sent from the R help mailing list archive at Nabble.com.
___
Hi,
I would like to save the plots produced by boa into postscript files in R.
I am struggling- can anyone advise?
Thanks Emma
--
View this message in context:
http://r.789695.n4.nabble.com/boa-library-and-plots-tp3322508p3322508.html
Sent from the R help mailing list archive at Nabble.com.
Hi,
I am fitting a random effects model and I am interested in the 95%
confidence interval of the variance components.
When I use the intervals() command it gives me the 95% confidence interval
of the standard deviation. Is there anyway of getting the 95% confidence
interval of the variance?
Th
Thanks for everyone's suggestionsI didn't realise it was so
straightforward- thanks for teaching me new tricks!
Emma
--
View this message in context:
http://r.789695.n4.nabble.com/Changing-a-logical-matrix-into-a-numeric-matrix-tp3206797p3206844.html
Sent from the R help mailing list archiv
Hi,
I would like to turn my TRUE/FALSE matrix into a 1/0 matrix (i.e. True=1 and
False=0)
[,1] [,2] [,3]
[1,] TRUE FALSE FALSE
[2,] TRUE TRUE FALSE
[3,] TRUE TRUE TRUE
[,1] [,2] [,3]
[1,]10 0
[2,]11 0
[3,]11 1
Is there a quick wa
Thanks- this works just as I needed- Emma
--
View this message in context:
http://r.789695.n4.nabble.com/Summing-over-specific-columns-in-a-matrix-tp3179400p3179439.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
Hi,
I would like to sum some specific columns in my matrix- for example, my
matrix looks like this:
[,1] [,2] [,3] [,4] [,5]
[1,]1 NA NA NA NA
[2,]21 NA1 NA
[3,]321 21
[4,]432 32
[5,] NA NA NA43
[6,] NA
Excellent- that is just what I need. Thank you so much for your prompt help,
Emma
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-join-matrices-of-different-row-length-from-a-list-tp3177212p3177252.html
Sent from the R help mailing list archive at Nabble.com.
Hi,
I have several matrix in a list, for example:
e
[[1]]
[,1] [,2]
[1,]13
[2,]24
[[2]]
[,1] [,2]
[1,]14
[2,]25
[3,]36
[[3]]
[,1] [,2]
[1,]21
I would like to join them by column i.e.
[,1] [,2] [,3] [,4][,5] [,6]
[1,]1
Many thanks-its worked a treat :-)
Emma
--
View this message in context:
http://r.789695.n4.nabble.com/Matrix-Manipulation-tp3027266p3027307.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://st
Hi,
Is there a quick way to go from this matrix:
> A
[,1] [,2] [,3]
[1,]111
[2,]222
[3,]333
[4,]444
[5,]5 NA5
[6,] NA NA6
[7,] NA NA NA
to this matrix:
> B
[,1] [,2] [,3]
[1,]1 NA NA
[2,]2 NA1
[3,
Hi,
Please can someone tell me if using sample() in R is actually a quick way of
doing the Inverse Transform Sampling Method?
Many thanks Emma
--
View this message in context:
http://r.789695.n4.nabble.com/Sample-in-R-tp3001818p3001818.html
Sent from the R help mailing list archive at Nabble.
bels=c("A","B"))
> with(TDat, boxplot(split(response, group)))
> summary(aov(response ~ group, data=TDat))
>
> Regards, Mark.
>
>
> emj83 wrote:
>>
>> can anyone advise me please?
>>
>>
>> emj83 wrote:
>>>
>>>
can anyone advise me please?
emj83 wrote:
>
> I have done some ANOVA tables for some data that I have, from this I can
> read the within-group variance. can anyone tell me how i may find out the
> between-group variance?
>
> Thanks Emma
>
--
View this mess
I have done some ANOVA tables for some data that I have, from this I can read
the within-group variance. can anyone tell me how i may find out the
between-group variance?
Thanks Emma
--
View this message in context:
http://www.nabble.com/Between-group-variance-from-ANOVA-tp24954045p24954045.htm
I would like to create a matrix in R that looks similar to this:
[,1] [,2] [,3] [,4]
[1,] NaN 1 2 3
[2,] NaN 1 2 4
[3,] NaN 1 2 5
[4,] NaN 2 3 4
[5,] NaN 2 3 5
[6,] NaN345
I have the loop below:
where A for example is 5
matrixx<-function(A){
B=matrix(NaN,
I have a list of numbers with NAs as below:
> A[,1]
[1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[19] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[37] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[55] NA
I would like to create a series of vectors in a loop and name them with
letters.
I know the command letters gives me the 26 letters of the alphabet.
For example, I have a dataframe, called A, with 6 columns.
>B<-length(A)
>C<-letters(1:B)
[1] "a" "b" "c" "d" "e" "f"
I would like to extract the
I have two numerical vectors; hun2 is a subset of hun1:
> hun1
[1] 147 198 141 170 184 136 150 134 144 161 124 103 107 110 121 79 106
51
[19] 102 109 52 71 52 80 95 78 75 96 101 107 107 80 71 49 71
64
[37] 58 68 75 85 55 52 70 90 98 90 100 98 74 78 60 69 106
103
I have solved my problem using:
> x<-1:4
> x
[1] 1 2 3 4
> combn(x,2)
[,1] [,2] [,3] [,4] [,5] [,6]
[1,]111223
[2,]234344
Thanks Emma
emj83 wrote:
>
> Hi,
>
> I have two lists of numbers which are both 1,2,3,4.
&
Hi,
I have two lists of numbers which are both 1,2,3,4.
I would like to combine pairs so that I have:
1,2
1,3
1,4
2,3
2,4
3,4.
I know that expand.grid() can give me all combinations of pairs.
Any suggestions would be much appreciated.
Emma
--
View this message in context:
http://www.nabble.
I am using auto.arima to find the best arima model but am a little confused
by the output. I want to choose the best model using the BIC criteria.
This is my code (straightforward where a is the data)
auto.arima(a,d=0,D=0,max.p=5,max.q=5,max.P=0,max.Q=0,max.order=5,start.p=0,start.q=0,start.P=0,st
is there some sort of R function which can advise me of the best ARIMA(p,q,r)
model to use based on the Schwarz criterion e.g for e.g p=0-5, q =0, r=0-5
or for example p+r< 5???
or is this something I will have to write my own code for?
Thanks Emma
--
View this message in context:
http://www.n
I have a dataframe called Match with two columns: position and tvalue.
I would like to select the parts of the dataframe that have a position> 10
but <50 and tvalues >3.5 as a new stand alone dataframe.
Could anyone help me with how to do this?
Thanks Emma
--
View this message in context:
htt
I am having trouble writing a code for matching two pairs of sequences with
differing lengths:
for example sequence1= 1,2,3,4,5,6,7 sequence2=1,2,3,4,5,6,7,8,9,10
I want to create several new pairs of sequences in several dataframes such
that:
1st dataframe is 1,10 (start of sequence1, end of se
I am having trouble writing a code for matching two pairs of sequences with
differing lengths:
for example sequence1= 1,2,3,4,5,6,7 sequence2=1,2,3,4,5,6,7,8,9,10
I want to create several new pairs of sequences in several dataframes such
that:
1st dataframe is 1,10 (start of sequence1, end of se
is there anyway for some parts of the function output to not be returned,
even if the output has been used to calculate a further part of the
function? i have tried invisible() to no avail.
Thanks Emma
--
View this message in context:
http://www.nabble.com/Function-output-difficulties-tp2081311
29 matches
Mail list logo