[R-sig-eco] Non-parametric test for unbalanced complete block data

2012-10-25 Thread Narkis Morales San Martin
Hi all

I need some help with some data from a germination experiment,
specifically hypocotyl and radicle elongation data. I wanted to
determine if the concentration of different leaf leachates (3
different concentrations) and the removal the mesocarp of the seeds
(with mesocarp/without mesocarp) had some effect on the germination
and hypocotyl and radicle elongation. The experiment consisted in 8
seeds per leachate treatment (control, 1:50, 1:1) with mesocarp and
without mesocarp. Each of these replicated 3 times.

The problem is that in some cases I didn't get a response (elongation)
as some seeds didn't germinate because they were attacked by a moth
larvae. I decided to take out the zeros as they didn't represent a
response to the treatment. So now I have an unbalanced complete block
with a non normal dataset. I did some research and, as I can't use a
Friedman test because of the missing data, I found a test call The
Skillings–Mack test but I couldn't find a package in R to do this.

Can any one tell me if this is the right test? and also does any one
know how to do it in R?

Regards

Narkis


-- 
Narkis Morales San Martin - PhD Candidate


School of Environment
The University of Auckland | Te Whare Wananga o Tamaki Makaurau
Private Bag 92019
Auckland 1001
New Zealand

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


[R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Manuel Spínola
Dear list members,

I want to replace the values of a numerical variable in a data frame called
"A".

A
X1X2
2   1.5
31
41.2

How to replace any value greater than 1 by the value 1 in the variable X2.

Thank you very much in advance.

Best,

Manuel

-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspin...@una.ac.cr
mspinol...@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río 
Institutional website: ICOMVIS 

[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Peter Solymos
Maybe:
A$X2[A$X2>1] <- 1

Peter

--
Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB
soly...@ualberta.ca, Ph 780.492.8534, http://psolymos.github.com
Alberta Biodiversity Monitoring Institute, http://www.abmi.ca
Boreal Avian Modelling Project, http://www.borealbirds.ca


2012/10/25 Manuel Spínola :
> Dear list members,
>
> I want to replace the values of a numerical variable in a data frame called
> "A".
>
> A
> X1X2
> 2   1.5
> 31
> 41.2
>
> How to replace any value greater than 1 by the value 1 in the variable X2.
>
> Thank you very much in advance.
>
> Best,
>
> Manuel
>
> --
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspin...@una.ac.cr
> mspinol...@gmail.com
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río 
> Institutional website: ICOMVIS 
>
> [[alternative HTML version deleted]]
>
>
> ___
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Sarah Goslee
Hi,

2012/10/25 Manuel Spínola :
> Dear list members,
>
> I want to replace the values of a numerical variable in a data frame called
> "A".
>
> A
> X1X2
> 2   1.5
> 31
> 41.2
>
> How to replace any value greater than 1 by the value 1 in the variable X2.

I think you made a typo? I'm assuming you want to replace values in
column X1 that are greater than 1 with the values in X2? All of your
X1 are greater than 1 in your test example, but:

with(A, ifelse(X1 > 1, X2, X1))
or
A$X1[A$X1 > 1] <- A$X2[A$X1 > 1]


Sarah

-- 
Sarah Goslee
http://www.functionaldiversity.org

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Tim Meehan
You can also try using ifesle()

A$X2 <- ifelse(A$X2>1, 1, A$X2)

On Thu, Oct 25, 2012 at 2:08 PM, Peter Solymos  wrote:

> Maybe:
> A$X2[A$X2>1] <- 1
>
> Peter
>
> --
> Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB
> soly...@ualberta.ca, Ph 780.492.8534, http://psolymos.github.com
> Alberta Biodiversity Monitoring Institute, http://www.abmi.ca
> Boreal Avian Modelling Project, http://www.borealbirds.ca
>
>
> 2012/10/25 Manuel Spínola :
> > Dear list members,
> >
> > I want to replace the values of a numerical variable in a data frame
> called
> > "A".
> >
> > A
> > X1X2
> > 2   1.5
> > 31
> > 41.2
> >
> > How to replace any value greater than 1 by the value 1 in the variable
> X2.
> >
> > Thank you very much in advance.
> >
> > Best,
> >
> > Manuel
> >
> > --
> > *Manuel Spínola, Ph.D.*
> > Instituto Internacional en Conservación y Manejo de Vida Silvestre
> > Universidad Nacional
> > Apartado 1350-3000
> > Heredia
> > COSTA RICA
> > mspin...@una.ac.cr
> > mspinol...@gmail.com
> > Teléfono: (506) 2277-3598
> > Fax: (506) 2237-7036
> > Personal website: Lobito de río <
> https://sites.google.com/site/lobitoderio/>
> > Institutional website: ICOMVIS 
> >
> > [[alternative HTML version deleted]]
> >
> >
> > ___
> > R-sig-ecology mailing list
> > R-sig-ecology@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> >
>
> ___
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>

[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Manuel Spínola
Thank you very much Sarah.

No, just to replace the values greater than 1 in X2.

Best,

Manuel

2012/10/25 Sarah Goslee 

> Hi,
>
> 2012/10/25 Manuel Spínola :
> > Dear list members,
> >
> > I want to replace the values of a numerical variable in a data frame
> called
> > "A".
> >
> > A
> > X1X2
> > 2   1.5
> > 31
> > 41.2
> >
> > How to replace any value greater than 1 by the value 1 in the variable
> X2.
>
> I think you made a typo? I'm assuming you want to replace values in
> column X1 that are greater than 1 with the values in X2? All of your
> X1 are greater than 1 in your test example, but:
>
> with(A, ifelse(X1 > 1, X2, X1))
> or
> A$X1[A$X1 > 1] <- A$X2[A$X1 > 1]
>
>
> Sarah
>
> --
> Sarah Goslee
> http://www.functionaldiversity.org
>



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspin...@una.ac.cr
mspinol...@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río 
Institutional website: ICOMVIS 

[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Manuel Spínola
Thank you very much Tim.

Best,

Manuel

2012/10/25 Tim Meehan 

> You can also try using ifesle()
>
> A$X2 <- ifelse(A$X2>1, 1, A$X2)
>
>
> On Thu, Oct 25, 2012 at 2:08 PM, Peter Solymos wrote:
>
>> Maybe:
>> A$X2[A$X2>1] <- 1
>>
>> Peter
>>
>> --
>> Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB
>> soly...@ualberta.ca, Ph 780.492.8534, http://psolymos.github.com
>> Alberta Biodiversity Monitoring Institute, http://www.abmi.ca
>> Boreal Avian Modelling Project, http://www.borealbirds.ca
>>
>>
>> 2012/10/25 Manuel Spínola :
>> > Dear list members,
>> >
>> > I want to replace the values of a numerical variable in a data frame
>> called
>> > "A".
>> >
>> > A
>> > X1X2
>> > 2   1.5
>> > 31
>> > 41.2
>> >
>> > How to replace any value greater than 1 by the value 1 in the variable
>> X2.
>> >
>> > Thank you very much in advance.
>> >
>> > Best,
>> >
>> > Manuel
>> >
>> > --
>> > *Manuel Spínola, Ph.D.*
>> > Instituto Internacional en Conservación y Manejo de Vida Silvestre
>> > Universidad Nacional
>> > Apartado 1350-3000
>> > Heredia
>> > COSTA RICA
>> > mspin...@una.ac.cr
>> > mspinol...@gmail.com
>> > Teléfono: (506) 2277-3598
>> > Fax: (506) 2237-7036
>> > Personal website: Lobito de río <
>> https://sites.google.com/site/lobitoderio/>
>> > Institutional website: ICOMVIS 
>> >
>> > [[alternative HTML version deleted]]
>> >
>> >
>> > ___
>> > R-sig-ecology mailing list
>> > R-sig-ecology@r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>> >
>>
>> ___
>> R-sig-ecology mailing list
>> R-sig-ecology@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>>
>
>


-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspin...@una.ac.cr
mspinol...@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río 
Institutional website: ICOMVIS 

[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology