Dear all, with the below 2 files I would like to to the t.test and var.test but it does not work. Can you help me ? thanks BR -------------- next part -------------- leto st_ur 1972 1608.3 1973 1825.6 1974 1646.8 1975 1718.8 1976 1837.5 1977 1905.9 1978 1694.6 1979 1928.3 1980 1632.6 1981 2064.4 1982 1794.7 1983 2079.1 1984 1741.7 1986 1943.9 1987 1867.8 1988 1994 1989 1883.2 1990 2070.8 1991 1908.7 1992 2072 1993 1934.2 1994 1999 1995 1900 1996 1842.8 1997 2156.8 1998 2075.2 1999 1975.5 2000 2337.8 2001 2123.3 2002 2056.9 2003 2294.1 2004 2005 1926.6 2006 1927.9 2007 2091.8 2008 2050.8 2009 1944.9 2010 1692.6 2011 2088.1 -------------- next part -------------- leto st_ur 1961 1804.8 1962 1621.5 1963 1648.8 1964 1660.4 1965 1646 1966 1647.1 1967 1748.7 1968 1721.1 1969 1679.3 1970 1674.5 1971 1845.5 1972 1444.9 1973 1775.3 1974 1631.9 1975 1641.2 1976 1707.7 1977 1561.9 1978 1596.4 1979 1693.7 1980 1576.4 1981 1863.3 1982 1706.4 1983 1957.4 1984 1569 1985 1859.6 1986 1758.3 1987 1792.4 1988 1766.9 1989 1777.6 1990 1986.9 1991 1902 1992 1952.8 1993 1890.9 1994 1965.9 1995 1791.6 1996 1665.9 1997 2062.7 1998 2054.2 1999 1874.6 2000 2243.8 2001 1992.7 2002 1923.8 2003 2251.3 2004 1779.4 2005 1895.9 2006 1886.1 2007 2009.7
> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Damjan / > Subject: [R] please help > > Dear all, > > with the below 2 files I would like to to the t.test and var.test > > but it does not work. > > Can you help me ? >Dear Damjan The posting guide at http://www.R-project.org/posting-guide.html is the usual recommended reading; for specific assistance you will need to at least provide the code used to run the tests and give details of the error messages you encountered. In the mean time, both the tests you refer to apply to tests between two and only two groups. Your files seem to have more than two years, which - at least until my telepathic inference improves - seems likely to cause a problem for t.test and var.test. Perhaps you were looking for pairwise.t.test? S Ellison ******************************************************************* This email and any attachments are confidential. Any use, copying or disclosure other than by the intended recipient is unauthorised. If you have received this message in error, please notify the sender immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com and delete this message and any copies from your computer and network. LGC Limited. Registered in England 2991879. Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK
... also, **if** this is homework, this list has a no homework policy. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Mar 14, 2016 at 1:43 AM, Damjan / <damjanfaks2015 at gmail.com> wrote:> Dear all, > > with the below 2 files I would like to to the t.test and var.test > > but it does not work. > > Can you help me ? > > thanks > > BR > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
John Kane Kingston ON Canada> -----Original Message----- > From: damjanfaks2015 at gmail.com > Sent: Mon, 14 Mar 2016 09:43:45 +0100 > To: r-help at r-project.org > Subject: [R] please help > > Dear all, > > with the below 2 files I would like to to the t.test and var.test > > but it does not work. > > Can you help me ? >Probably but we need to know more about what you are doing. You have told us nothing so far. At a guess, you want to do a t-test on the st_ur variable that you have in the two files. Is that correct? Something like this probably will work. dat1 <- read.csv("~/Rjunk/sonce_ljubljana.txt", sep = "\t", header = TRUE, stringsAsFactors=FALSE) dat2 <- read.csv("~/Rjunk/sonce_murska.txt", sep = "\t", header = TRUE, stringsAsFactors=FALSE) dat3 <- merge(dat1, dat2, by = "leto") names(dat3) <- c("leto", "ljubljana", "murska") with(dat3, t.test(ljubljana, murska)) However you really need to supply much more information on what you are doing. Please read http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html for information on how to ask questions here. Thank you for providing the data. ____________________________________________________________ FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more!