I'm not quite sure I got your question right, but here what I think of it :
- if x is your vector of ??
- and y your vector of dollars(i assume that was what you meant)
You could just perform a t-test on x and y/2, or a wilcoxon test :
> t.test(x,y/2)
> wilcox.test(x,y/2)
Cindy a ??crit :
>Hello!
>
>Could you tell me how to write R programming code about "Test the
hypothesis that ??l=0.5 ?"
>
>Thank you!
>
>Cindy
>
>
>---
>
>
>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
R-project.org/posting-guide.html
>
>
>
>
--
Romain Fran??ois
25, avenue Guy Moquet
94 400 Vitry sur seine
FRANCE
_______________________
_______________________
francoisromain at free.fr
01 46 80 65 60
06 18 39 14 69