Re: [R] Summary Table for Quantile Regression for Complex Survey

2019-07-16 Thread Mavra Ahmed
ace it here? Thanks for your help, Mavra From: Koenker, Roger W Sent: July 16, 2019 11:37:54 AM To: Mavra Ahmed Cc: r-help@r-project.org Subject: Re: [R] Summary Table for Quantile Regression for Complex Survey try summary(newer, se = �nid�) Roger Koenker r.koen

Re: [R] Summary Table for Quantile Regression for Complex Survey

2019-07-16 Thread Koenker, Roger W
try summary(newer, se = “nid”) Roger Koenker r.koen...@ucl.ac.uk Department of Economics, UCL London WC1H 0AX. On Jul 16, 2019, at 2:46 AM, Mavra Ahmed mailto:mavz.ah...@utoronto.ca>> wrote: Hello All, I am running quantile regression for a complex survey design

[R] Summary Table for Quantile Regression for Complex Survey

2019-07-16 Thread Mavra Ahmed
Hello All, I am running quantile regression for a complex survey design and am running the following code: newdf<-withReplicates(df, quote(coef(rq(api00~api99, tau=0.5, weights=.weights This provides me with the theta and SE but I would really like the p-values and residual degrees of f

Re: [R] summary function did not work with multcomp with 27 comparisons

2018-11-11 Thread Michael Dewey
Dear Richard If you look in the R-help archives you will find that Gerrit Eichner suggested that you might need to be more patient. Try using increasing numbers of comparisons from 4 and plot time taken against n of comparisons then extrapolate to 27. Michael On 11/11/2018 00:51, Friedman,

[R] summary function did not work with multcomp with 27 comparisons

2018-11-10 Thread Friedman, Richard A.
Dear List. I submitted this inquiry on Thursday but it bounced because I wasn;s a memeber under my current e-mail address; I since joined, but did not receive Friday's issue. So please excuse me if you have seen this query before. I ran multcomp with 27 comparisons. The glht command returned an

Re: [R] summary function does not work with Westfall correction in multcomp with 27 comparisons

2018-11-08 Thread Gerrit Eichner
Dear Rich, w/o the original data we can actually only guess, but I think you may haven't been patient enough to let summary.glht finish its job. Have you tried to increase the number of contrasts, i.e. comparisons, step by step to see how the computational burden and hence the required computing

[R] summary function does not work with Westfall correction in multcomp with 27 comparisons

2018-11-08 Thread Friedman, Richard A.
Dear List. I ran multcomp with 27 comaprisons. The glht command returned an mcp object, but the summary command with the Westfall correction ddi not give a summary. When I ran the same dataset with 4 comparisons I got p-values. When I sued a summary with univariate or Bonferroni’s method with all

Re: [R] Summary to data frame in R!!

2014-05-21 Thread peter dalgaard
On 07 May 2014, at 17:55 , Marc Schwartz wrote: >> as.data.frame(sapply(mtcars[, c("mpg", "disp")], summary)) I'd use lapply() rather than sapply() here. That goes directly from a list to a data frame, avoiding the detour via a matrix. -- Peter Dalgaard, Professor Center for Statistics, Cop

Re: [R] Summary to data frame in R!!

2014-05-07 Thread Marc Schwartz
On May 7, 2014, at 5:15 AM, Abhinaba Roy wrote: > Hi R-helpers, > > sumx <- summary(mtcars[,c("mpg","disp")]) >> sumx > mpg disp > Min. :10.40 Min. : 71.1 > 1st Qu.:15.43 1st Qu.:120.8 > Median :19.20 Median :196.3 > Mean :20.09 Mean :230.7 > 3rd Qu.:22.80 3rd

[R] Summary to data frame in R!!

2014-05-07 Thread Abhinaba Roy
Hi R-helpers, sumx <- summary(mtcars[,c("mpg","disp")]) > sumx mpg disp Min. :10.40 Min. : 71.1 1st Qu.:15.43 1st Qu.:120.8 Median :19.20 Median :196.3 Mean :20.09 Mean :230.7 3rd Qu.:22.80 3rd Qu.:326.0 Max. :33.90 Max. :472.0 I want a dataframe as

Re: [R] summary() and the mode

2014-01-23 Thread Marc Schwartz
On Jan 23, 2014, at 2:27 PM, Ruhil, Anirudh wrote: > A student asked: Why does R's summary() command yield the Mean and the > Median, quartiles, min, and max but was written to exclude the Mode? > > I said I had no clue, googled the question without much luck, and am now > posting it to see i

Re: [R] summary() and the mode

2014-01-23 Thread Jim Lemon
On 01/24/2014 07:27 AM, Ruhil, Anirudh wrote: A student asked: Why does R's summary() command yield the Mean and the Median, quartiles, min, and max but was written to exclude the Mode? I said I had no clue, googled the question without much luck, and am now posting it to see if anybody knows

Re: [R] summary() and the mode

2014-01-23 Thread Rolf Turner
On 24/01/14 09:27, Ruhil, Anirudh wrote: A student asked: Why does R's summary() command yield the Mean and the Median, quartiles, min, and max but was written to exclude the Mode? I said I had no clue, googled the question without much luck, and am now posting it to see if anybody knows why.

[R] summary() and the mode

2014-01-23 Thread Ruhil, Anirudh
A student asked: Why does R's summary() command yield the Mean and the Median, quartiles, min, and max but was written to exclude the Mode? I said I had no clue, googled the question without much luck, and am now posting it to see if anybody knows why. Ani [[alternative HTML version

Re: [R] summary many regressions

2013-11-26 Thread PIKAL Petr
project.org] On Behalf Of Gary Dong > Sent: Tuesday, November 26, 2013 12:36 AM > To: r-help@r-project.org > Subject: [R] summary many regressions > > Dear R users, > > I have a large data set which includes data from 300 cities. I want to > run a biviriate regression for e

Re: [R] summary many regressions

2013-11-25 Thread arun
Hi, Try: res <- do.call(rbind,lapply(split(data,data$city),function(z) {fit_city <- lm(y~x,data=z);data.frame(City=unique(z$city),Coefficient=coef(fit_city)[2],Adjusted_R_square= summary(fit_city)$adj.r.squared)})) A.K. On Monday, November 25, 2013 6:37 PM, Gary Dong wrote: Dear R users, I

Re: [R] summary many regressions

2013-11-25 Thread David Winsemius
On Nov 25, 2013, at 3:35 PM, Gary Dong wrote: > Dear R users, > > I have a large data set which includes data from 300 cities. I want to run > a biviriate regression for each city and record the coefficient and the > adjusted R square. > > For example, in the following, I have 10 cities represe

[R] summary many regressions

2013-11-25 Thread Gary Dong
Dear R users, I have a large data set which includes data from 300 cities. I want to run a biviriate regression for each city and record the coefficient and the adjusted R square. For example, in the following, I have 10 cities represented by numbers from 1 to 10: x = cumsum(c(0, runif(999, -1,

Re: [R] summary and plot

2013-10-10 Thread arun
Hi, May be: dat1<- read.table(text="city year sex  obs 1  1990  M  25 1  1990  F  32 1  1991  M  15 1  1991  F  22 2  1990  M  42 2  1990  F  36 2  1991  M  12 2  1991  F  16",sep="",header=TRUE,stringsAsFactors=FALSE) library(plyr) #by city  d1 <- ddply(dat1,.(city

Re: [R] summary and plot

2013-10-10 Thread Richard M. Heiberger
This is better for plotting the percents likert(city ~ F + M | year, data=popwide, as.percent="noRightAxis", main="F M population by city within year") likert(year ~ F + M | city, data=popwide, as.percent="noRightAxis", main="F M population by year within city") We can also plot t

Re: [R] summary and plot

2013-10-10 Thread Richard M. Heiberger
## I would use the likert function in the HH package ## if necessary ## install.packages("HH") ## install.packages("reshape") library(HH) library(reshape) pop <- read.table(header=TRUE, text=" city year sex obs 1 1990 M 25 1 1990 F 32 1 1991 M 15 1 1991 F 22 2

[R] summary and plot

2013-10-10 Thread Val
Hi All, I have a huge data set with the following type; city year sex obs 1 1990 M 25 1 1990 F 32 1 1991 M 15 1 1991 F 22 2 1990 M 42 2 1990 F 36 2 1991 M 12 2 1991 F 16 I want to calculate the percentage of M and F by city, year and

Re: [R] Summary functions in sqldf() XXXX

2013-10-08 Thread Gabor Grothendieck
On Tue, Oct 8, 2013 at 11:46 AM, Dan Abner wrote: > Hi everyone, > > Is it possible to obtain the 1st & 3rd quartiles & the median in a sqldf() > select statement? If so, can you please provide the summary fn code? See the list of functions in Example15 on the sqldf home page: https://code.goog

[R] Summary functions in sqldf() XXXX

2013-10-08 Thread Dan Abner
Hi everyone, Is it possible to obtain the 1st & 3rd quartiles & the median in a sqldf() select statement? If so, can you please provide the summary fn code? Thanks! Dan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] summary(object) not showing all values of a factor

2013-09-04 Thread PIKAL Petr
n...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Soumitro Dey > Sent: Tuesday, September 03, 2013 8:51 PM > To: r-help@r-project.org > Subject: [R] summary(object) not showing all values of a factor > > Dear all, > > I am encountering some odd results fr

Re: [R] summary(object) not showing all values of a factor

2013-09-03 Thread Bert Gunter
These are **not** odd results. You just don't understand how linear models work, in particular, you need to understand contrasts for categorical factors. As this is not the place for a statistics tutorial, I suggest you read up on linear models or consult a local expert. Cheers, Bert On Tue, Se

[R] summary(object) not showing all values of a factor

2013-09-03 Thread Soumitro Dey
Dear all, I am encountering some odd results from the summary(object) command for coxph and hurdle models. In both cases the result of summary(object) function leaves out one of the categories of a categorical variable used in the model. It is typically the first category if sorted alphabetically.

Re: [R] Summary of data for each year

2013-02-01 Thread arun
: 2009 0.8465300 0.59450  6.383 0.3877 A.K. - Original Message - From: Janesh Devkota To: r-help@r-project.org Cc: Sent: Friday, February 1, 2013 2:32 AM Subject: [R] Summary of data for each year Hello All, I have a data with two columns. In one column it is date and in another column i

Re: [R] Summary of data for each year

2013-02-01 Thread Felipe Carrillo
evkota >Cc: r-help@r-project.org >Sent: Thursday, January 31, 2013 11:52 PM >Subject: Re: [R] Summary of data for each year > >Hello, > >One possibility is: > >> creek <- read.csv("creek.csv") >> colnames(creek) <- c("date","flow&q

Re: [R] Summary of data for each year

2013-01-31 Thread Pascal Oettli
Hello, One possibility is: > creek <- read.csv("creek.csv") > colnames(creek) <- c("date","flow") > creek$date <- as.Date(creek$date, "%m/%d/%Y") > creek <- within(creek, year <- format(date, '%Y')) > with(creek, aggregate(flow, by=list(year=year), summary)) HTH, Pascal Le 01/02/2013 16:32,

[R] Summary of data for each year

2013-01-31 Thread Janesh Devkota
Hello All, I have a data with two columns. In one column it is date and in another column it is flow data. I was able to read the data as date and flow data. I used the following code: creek <- read.csv("creek.csv") library(ggplot2) creek[1:10,] colnames(creek) <- c("date","flow") creek$date <-

Re: [R] Summary command: Two independent variables against dependent.

2012-12-06 Thread Daniel Martin
Brilliant, thanks very much!! Works fine. Dan On 6 Dec 2012, at 18:25, arun kirshna [via R] wrote: > Hi, > Your question is not very clear. I hope you are not looking for the subset > option in summary(lm()). > If you want just the summary(), then use '&' or '|' > For e.g. > dat1<-read.tab

Re: [R] Summary statistics for matrix columns

2012-11-24 Thread David Winsemius
On Nov 24, 2012, at 4:58 AM, frespider wrote: HI A.k, I need one more question, if you can answer it please M <- matrix(sample(1:8000),nrow=100) colnames(M)<- paste("Col",1:ncol(M),sep="") apply(M,2,function(x) c(Min=min(x),"1st Qu" =quantile(x, 0.25,names=FALSE),

Re: [R] Summary statistics for matrix columns

2012-11-24 Thread arun
6   59   67   47   52   66   65   69    66 #or rowDiffs(colRanges(x)) A.K. - Original Message - From: frespider To: r-help@r-project.org Cc: Sent: Saturday, November 24, 2012 7:58 AM Subject: Re: [R] Summary statistics for matrix columns HI A.k, I need one more question, if y

Re: [R] Summary statistics for matrix columns

2012-11-24 Thread William Dunlap
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of frespider > Sent: Saturday, November 24, 2012 4:58 AM > To: r-help@r-project.org > Subject: Re: [R] Summary statistics for matrix columns > > > > HI A.k, > > I need

Re: [R] Summary statistics for matrix columns

2012-11-24 Thread frespider
ystem elapsed # 0.968 0.000 0.956 A.K. ____ From: Fares Said <[hidden email]> To: arun <[hidden email]> Cc: Pete Brecknock <[hidden email]>; R help <[hidden email]> Sent: Friday, November 23, 2012 10:23 AM Subject: R

Re: [R] Summary statistics for matrix columns

2012-11-23 Thread arun
mes(x)<- paste("Col",1:ncol(x1),sep="") system.time(fun1(x1)) #   user  system elapsed  # 0.968   0.000   0.956 A.K. ________ From: Fares Said To: arun Cc: Pete Brecknock ; R help Sent: Friday, November 23, 2012 10:23 AM Subject: Re: [R] Summary statistics for matrix columns

Re: [R] Summary statistics for matrix columns

2012-11-23 Thread arun
Message - From: Pete Brecknock To: r-help@r-project.org Cc: Sent: Friday, November 23, 2012 8:42 AM Subject: Re: [R] Summary statistics for matrix columns frespider wrote > Hi, > > it is possible. but don't you think it will slow the code if you convert > to data.fr

Re: [R] Summary statistics for matrix columns

2012-11-23 Thread Fares Said
quot; = quantile(x,0.75,names=FALSE), > IQR=IQR(x), > Max = max(x))) }) > # user system elapsed > # 0.384 0.000 0.384 > > > A.K. > > > > - Original Message - > From: Pete Brecknock > To: r

Re: [R] Summary statistics for matrix columns

2012-11-23 Thread Pete Brecknock
frespider wrote > Hi, > > it is possible. but don't you think it will slow the code if you convert > to data.frame? > > Thanks > > Date: Thu, 22 Nov 2012 18:31:35 -0800 > From: > ml-node+s789695n4650500h51@.nabble > To: > frespider@ > Subject: RE: Summary statistics for matrix columns >

Re: [R] Summary statistics for matrix columns

2012-11-22 Thread frespider
Hi, it is possible. but don't you think it will slow the code if you convert to data.frame? Thanks Date: Thu, 22 Nov 2012 18:31:35 -0800 From: ml-node+s789695n4650500...@n4.nabble.com To: frespi...@hotmail.com Subject: RE: Summary statistics for matrix columns HI, Is it possible t

Re: [R] Summary statistics for matrix columns

2012-11-22 Thread frespider
HI, but Sd and IQR not in the order I want , Thanks Date: Thu, 22 Nov 2012 18:08:57 -0800 From: ml-node+s789695n4650496...@n4.nabble.com To: frespi...@hotmail.com Subject: RE: Summary statistics for matrix columns Hi, How about this: res<-do.call(cbind,lapply(split(x,col(x)),funct

Re: [R] Summary statistics for matrix columns

2012-11-22 Thread frespider
There is still missing some statistics, like sd and IQR and I prefer the output to be matrix Thanks Date: Thu, 22 Nov 2012 18:00:20 -0800 From: ml-node+s789695n4650493...@n4.nabble.com To: frespi...@hotmail.com Subject: Re: Summary statistics for matrix columns HI, You could try t

Re: [R] Summary statistics for matrix columns

2012-11-22 Thread frespider
Hi peter, but this doesn't give me them in the order I want. Is there a better approach Thanks -- View this message in context: http://r.789695.n4.nabble.com/Summary-statistics-for-matrix-columns-tp4650489p4650492.html Sent from the R help mailing list archive at Nabble.com. _

[R] Summary statistics for matrix columns

2012-11-22 Thread frespider
Hi, is there a way I can calculate a summary statistics for a columns matrix let say we have this matrix x <- matrix(sample(1:8000),nrow=100) colnames(x)<- paste("Col",1:ncol(x),sep="") if I used summary summary(x) i get the output for each column but I need the output to be in matrix with r

Re: [R] Summary statistics for matrix columns

2012-11-22 Thread frespider
I also don't like to use split function because I have like around 800 columns Date: Thu, 22 Nov 2012 18:08:54 -0800 From: ml-node+s789695n4650496...@n4.nabble.com To: frespi...@hotmail.com Subject: RE: Summary statistics for matrix columns Hi, How about this: res<-do.call(cbind,lapply(split(

Re: [R] Summary statistics for matrix columns

2012-11-22 Thread Pete Brecknock
frespider wrote > Hi, > > is there a way I can calculate a summary statistics for a columns matrix > let say we have this matrix > x <- matrix(sample(1:8000),nrow=100) > colnames(x)<- paste("Col",1:ncol(x),sep="") > > if I used summary > summary(x) > > i get the output for each column but I

Re: [R] Summary of variables with NA, empty

2012-10-24 Thread David Winsemius
1, 2, 3, 4, 5 I find it good to put in counter-examples such as a column that is non-factor. I thought that a non-factor column would probably break your code, but happily it survived. You might think about writing two functions: one to pick the columns to be assessed and the other to return a str

Re: [R] Summary of variables with NA, empty

2012-10-24 Thread Lopez, Dan
els(y), collapse=", "))), right=FALSE)} > PrintLvls2(dat1) Lvls Names col1 92, 6, 7, 10, 15, 16, 17, 23, 24 col2 7b, c, d, e, g, h, j col3 51, 2, 3, 4, 5 Thanks. Dan -Original Message----- From: Bert Gunter [mailto:gunter.ber..

Re: [R] Summary of variables with NA, empty

2012-10-23 Thread Bert Gunter
To highlight: "Basically all Null values" is a meaningless phrase in R. ?Null ?NA ?NaN have **very specific meanings** in R and have nothing to do with the various sorts of whitespace characters that David mentions (spaces, tabs...). If you wish to use R, you **must** understand the distinctions (

Re: [R] Summary of variables with NA, empty

2012-10-23 Thread David Winsemius
On Oct 23, 2012, at 11:17 AM, Lopez, Dan wrote: > Hi, > > Is there a function I can use on my dataframe to give me a concise summary of > variables that are NA,blank,etc? Basically all Null values, Empty strings, > white space, blank values. Ideally it would look something like the below: > >

[R] Summary of variables with NA, empty

2012-10-23 Thread Lopez, Dan
Hi, Is there a function I can use on my dataframe to give me a concise summary of variables that are NA,blank,etc? Basically all Null values, Empty strings, white space, blank values. Ideally it would look something like the below: # it should only includes the fields with NAs, blanks, etc. Add

Re: [R] Summary using by() returns character arrays in a list

2012-10-11 Thread PIKAL Petr
k [mailto:do...@xs4all.nl] > Sent: Wednesday, October 10, 2012 4:03 PM > To: PIKAL Petr > Cc: Alex van der Spek; r-help@r-project.org > Subject: RE: [R] Summary using by() returns character arrays in a list > > Thank you Petr, > > Try this > > str(by(iris, iris$Sp

Re: [R] Summary using by() returns character arrays in a list

2012-10-10 Thread arun
A 0 50 0 NA ... Not sure, if you need the last column. I agree that aggregate() or ddply() will be easier. A.K. - Original Message - From: Alex van der Spek To: r-help@r-project.org Cc: Sent: Wednesday, October 10, 2012 8:47 AM Subject: [R] Summary using by() returns character arrays i

Re: [R] Summary using by() returns character arrays in a list

2012-10-10 Thread Rui Barradas
] On Behalf Of Alex van der Spek Sent: Wednesday, October 10, 2012 2:48 PM To: r-help@r-project.org Subject: [R] Summary using by() returns character arrays in a list I use by() to generate a summary statistics like so: Lbys <- by(dat[Nidx], dat$LipTest, summary) where Nidx is an index vector

Re: [R] Summary using by() returns character arrays in a list

2012-10-10 Thread Alex van der Spek
>> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On Behalf Of Alex van der Spek >> Sent: Wednesday, October 10, 2012 2:48 PM >> To: r-help@r-project.org >> Subject: [R] Summary using by() returns character arrays in a list >> >

Re: [R] Summary using by() returns character arrays in a list

2012-10-10 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Alex van der Spek > Sent: Wednesday, October 10, 2012 2:48 PM > To: r-help@r-project.org > Subject: [R] Summary using by() returns character arrays in a

[R] Summary using by() returns character arrays in a list

2012-10-10 Thread Alex van der Spek
I use by() to generate a summary statistics like so: Lbys <- by(dat[Nidx], dat$LipTest, summary) where Nidx is an index vector with names picking out the columns in the data frame dat. This returns a list of character arrays (see below for str() output) where the columns are named correctly but

Re: [R] summary() after changing contrasts

2012-08-10 Thread S Ellison
On Behalf Of Daniel Weitzenfeld > Sent: 09 August 2012 22:08 > To: r-help@r-project.org > Subject: [R] summary() after changing contrasts > > Hi, > After running a regression on a factor variable, summary() > reports the coefficients 'nicely,' ie, labelled with a string >

[R] summary() after changing contrasts

2012-08-09 Thread Daniel Weitzenfeld
Hi, After running a regression on a factor variable, summary() reports the coefficients 'nicely,' ie, labelled with a string that is a concatenation of the variable name and the factor label. However, changing the base case a la contrasts(variable)<-contr.treatment(N, base=x) results in the coeff

Re: [R] summary(svyglm) Pr (> | t |) ?

2012-08-02 Thread John Fox
Dear Diana, > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Diana Marcela Martinez Ruiz > Sent: August-02-12 5:00 PM > To: j...@mcmaster.ca; tlum...@uw.edu; Ayuda en R > Subject: Re: [R] summary

Re: [R] summary(svyglm) Pr (> | t |) ?

2012-08-02 Thread Diana Marcela Martinez Ruiz
the model Thanks > From: j...@mcmaster.ca > To: dianamm...@hotmail.com > CC: r-help@r-project.org; tlum...@uw.edu > Subject: RE: [R] summary(svyglm) Pr (> | t |) ? > Date: Thu, 2 Aug 2012 16:50:37 -0400 > > Dear Diana, > > The Anova() function in the car package

Re: [R] summary(svyglm) Pr (> | t |) ?

2012-08-02 Thread John Fox
inez Ruiz > Sent: August-02-12 4:14 PM > To: Ayuda en R; tlum...@uw.edu > Subject: [R] summary(svyglm) Pr (> | t |) ? > > > Hello > > I want to know if the summary of the logistic model with survey Pr (> | t |) to > test if the coefficient of the model is significa

[R] summary(svyglm) Pr (> | t |) ?

2012-08-02 Thread Diana Marcela Martinez Ruiz
Hello I want to know if the summary of the logistic model with survey Pr (> | t |) to test if the coefficient of the model is significant, ie is the p_valor wald test for the model coefficients, for I am interested to know if the three levels of the variable educational level are significant

Re: [R] summary for weekdays()

2012-05-11 Thread Rui Barradas
Hello Try table(mydata$day) Works with any type of character input. Hope this helps, Rui Barradas Kai Mx wrote > > Hi all, > probably really simple: I seem to be lacking some understanding for the > character class: I have a bunch of dates in a dataframe and I want to add > a > string variab

[R] summary for weekdays()

2012-05-11 Thread Kai Mx
Hi all, probably really simple: I seem to be lacking some understanding for the character class: I have a bunch of dates in a dataframe and I want to add a string variable with the weekday for each date. If I use something like mydata$day <- weekdays (mydata$date), I can create subsets for each wee

Re: [R] Summary about how to divide data by week

2012-04-17 Thread Rui Barradas
Hello, I'm glad you have a solution that works. Maybe you could do the same without hard-coding the values 1:7, 8:14. $ library(chron) dat <- with(my_dataframe, paste(month, day, year, sep="/")) week <- cut(chron(dat), breaks="weeks") head(week) tapply(my_dataframe$Freq, week, mean) Hope thi

[R] Summary about how to divide data by week

2012-04-17 Thread Stefano Sofia
Thank you to Ozgur, who gave me the hints for an easy solution. There are the commands that work for my case: mean(my_dataframe$Freq[my_dataframe$month == 5 & my_dataframe$day %in% c(1:7)]) mean(my_dataframe$Freq[my_dataframe$month == 5 & my_dataframe$day %in% c(8:14)]) ... Stefano Sofia PhD

Re: [R] Summary Statistics Help

2012-04-08 Thread bobo
I've got this solved via Talks Stat mod.1<-lm(Patents~FHouse, data=datpat) summary(mod.1) anova(mod.1) xtable(mod.1) -- View this message in context: http://r.789695.n4.nabble.com/Summary-Statistics-Help-tp4541923p4542103.html Sent from the R help mailing list archive at Nabble.com. _

[R] Summary Statistics Help

2012-04-08 Thread bobo
Hi, I would really appreciate all the help I can get. Unfortunately, I am really new to statistics! I hope you guys don't mind this. I am trying to find significance levels, beta, R, R squared, adjusted R squared, standard error and t test. FILE http://r.789695.n4.nabble.com/file/n4541923/datpat

Re: [R] Summary values from Glm function (rms package)

2012-03-22 Thread Frank Harrell
The smearingEst function in the Hmisc package, given a set of residuals, can compute the smearing estimator of the mean. To get the confidence interval for the mean or difference in the mean will take some work (unless you have no covariates to adjust for; in that case you can just bootstrap the o

[R] Summary values from Glm function (rms package)

2012-03-21 Thread Yonghao
Dear fellow R-users, I’m using the Glm function (gamma family of distributions) from the rms package to compare 2 groups on costs data. Although the summary function does provide the mean cost difference and standard errors, I believe these values were in the (natural) log ratio format. Is there

[R] Summary values from Glm function (rms package)

2012-03-21 Thread Yonghao
Dear fellow R-users, I’m using the Glm function (gamma family of distributions) from the rms package to compare 2 groups on costs data. Although the summary function does provide the mean cost difference and standard errors, I believe these values were in the (natural) log ratio format. Is there

Re: [R] summary per group

2012-01-02 Thread Petr PIKAL
Hi > > > Hi > > > > > > > > Hello, > > > > > > I know that it'll be quite easy to do what I want but somehow I am lost > > as > > > I am new to R. I want to get summary results arranged by groups. In > > detail > > > I'd like get the number (levels) of Species per Family like for this > >

Re: [R] summary per group

2012-01-02 Thread David Winsemius
On Jan 2, 2012, at 11:14 AM, Johannes Radinger wrote: Thank you Petr, that is exactly what I was looking for... no I played a little bit around with that because I want to create a summary with FAM as a grouping variable. Beside the number of unique SPEC per FAM also want to get their

Re: [R] summary per group

2012-01-02 Thread Johannes Radinger
Original-Nachricht > Datum: Mon, 2 Jan 2012 14:29:07 +0100 > Von: Petr PIKAL > An: "Johannes Radinger" > CC: r-help@r-project.org > Betreff: Re: [R] summary per group > Hi > > > > > Hello, > > > > I know that it&#

Re: [R] summary per group

2012-01-02 Thread Sarah Goslee
Hi, On Mon, Jan 2, 2012 at 8:08 AM, Johannes Radinger wrote: > Hello, > > I know that it'll be quite easy to do what I want but somehow I am lost as I > am new to R. I want to get summary results arranged by groups. In detail > I'd like get the number (levels) of Species per Family like for this

Re: [R] summary per group

2012-01-02 Thread Petr PIKAL
Hi > > Hello, > > I know that it'll be quite easy to do what I want but somehow I am lost as > I am new to R. I want to get summary results arranged by groups. In detail > I'd like get the number (levels) of Species per Family like for this dataset: > > SPEC <- factor(c("a","a","b","b","c","

[R] summary per group

2012-01-02 Thread Johannes Radinger
Hello, I know that it'll be quite easy to do what I want but somehow I am lost as I am new to R. I want to get summary results arranged by groups. In detail I'd like get the number (levels) of Species per Family like for this dataset: SPEC <- factor(c("a","a","b","b","c","c","c","d","e","e","e",

Re: [R] Summary tables of large datasets including character and numerical variables

2011-12-27 Thread John Kane
list(cl), unlist(nas)) names(mysum) <- nams mysum <- mysum } === - Original Message - From: sparandekar To: r-help@r-project.org Cc: Sent: Monday, December 26, 2011 5:44:53 AM Subject: [R] Summary tables of large datasets including

Re: [R] Summary tables of large datasets including character and numerical variables

2011-12-26 Thread David Winsemius
On Dec 26, 2011, at 5:44 AM, sparandekar wrote: Hello ! I am attempting to switch from being a long time SAS user to R, and would really appreciate a bit of help ! The first thing I do in getting a large dataset (thousands of obervations and hundreds of variables) is to run a SAS command

Re: [R] Summary tables of large datasets including character and numerical variables

2011-12-26 Thread Duncan Murdoch
On 11-12-26 5:44 AM, sparandekar wrote: Hello ! I am attempting to switch from being a long time SAS user to R, and would really appreciate a bit of help ! The first thing I do in getting a large dataset (thousands of obervations and hundreds of variables) is to run a SAS command PROC CONTENTS V

Re: [R] Summary tables of large datasets including character and numerical variables

2011-12-26 Thread John Kane
ata[, 100] dput(df1) and paste the resulting output into a message.   Sorry I'm not more helpful but seeing real data makes life a lot easier. - Original Message - From: sparandekar To: r-help@r-project.org Cc: Sent: Monday, December 26, 2011 5:44:53 AM Subject: [R] Summary t

[R] Summary tables of large datasets including character and numerical variables

2011-12-26 Thread sparandekar
Hello ! I am attempting to switch from being a long time SAS user to R, and would really appreciate a bit of help ! The first thing I do in getting a large dataset (thousands of obervations and hundreds of variables) is to run a SAS command PROC CONTENTS VARNUM command - this provides me a table w

Re: [R] summary vs anova

2011-12-19 Thread peter dalgaard
On Dec 19, 2011, at 15:09 , Brent Pedersen wrote: > Hi, I'm sure this is simple, but I haven't been able to find this in TFM, It's not _that_ simple. You likely need TFtextbook rather than TFM. Most (but not all) will go into at least some detail of coding categorical variables using dummy var

Re: [R] summary vs anova

2011-12-19 Thread David Winsemius
On Dec 19, 2011, at 9:09 AM, Brent Pedersen wrote: Hi, I'm sure this is simple, but I haven't been able to find this in TFM, say I have some data in R like this (pasted here: http://pastebin.com/raw.php?i=sjS9Zkup): One of the reason this is not in TFM is that these are questions that sho

[R] summary vs anova

2011-12-19 Thread Brent Pedersen
Hi, I'm sure this is simple, but I haven't been able to find this in TFM, say I have some data in R like this (pasted here: http://pastebin.com/raw.php?i=sjS9Zkup): > head(df) gender age smokes diseaseY 1 female 65 ever control 0.18 2 female 77 never control 0.12 3 male 40

[R] Summary model with observations taken out and dummied back in - not working

2011-12-09 Thread RRRRRRRRRRR
I have a data set with 35 observations and 4 variables. I have removed 4 observations as they were skewing the data analysis but I want to dummy them back in, (not entirely sure on the reason, but have been told I should try). I have used this in order to do it, but I am not getting any statistic

Re: [R] Summary coefficients give NA values because of singularities

2011-12-06 Thread Uwe Ligges
On 05.12.2011 21:57, Gathurst wrote: Hello, I have a data set which I am using to find a model with the most significant parameters included and most importantly, the p-values. The full model is of the form: sad[,1]~b_1 sad[,2]+b_2 sad[,3]+b_3 sad[,4]+b_4 sad[,5]+b_5 sad[,6]+b_6 sad[,7]+b_

[R] Summary coefficients give NA values because of singularities

2011-12-05 Thread Gathurst
Hello, I have a data set which I am using to find a model with the most significant parameters included and most importantly, the p-values. The full model is of the form: sad[,1]~b_1 sad[,2]+b_2 sad[,3]+b_3 sad[,4]+b_4 sad[,5]+b_5 sad[,6]+b_6 sad[,7]+b_7 sad[,8]+b_8 sad[,9]+b_9 sad[,10], where

Re: [R] Summary stats in table

2011-10-30 Thread Duncan Murdoch
On 11-10-24 7:16 PM, Hadley Wickham wrote: On Mon, Oct 24, 2011 at 5:39 AM, Duncan Murdoch wrote: Suppose I have data like this: A<- sample(letters[1:3], 1000, replace=TRUE) B<- sample(LETTERS[1:2], 1000, replace=TRUE) x<- rnorm(1000) I can get a table of means via tapply(x, list(A, B), mea

Re: [R] Summary stats in table

2011-10-24 Thread Hadley Wickham
On Mon, Oct 24, 2011 at 5:39 AM, Duncan Murdoch wrote: > Suppose I have data like this: > > A <- sample(letters[1:3], 1000, replace=TRUE) > B <- sample(LETTERS[1:2], 1000, replace=TRUE) > x <- rnorm(1000) > > I can get a table of means via > > tapply(x, list(A, B), mean) > > and I can add the marg

Re: [R] Summary stats in table

2011-10-23 Thread Tyler Rinker
gt; Date: Sun, 23 Oct 2011 14:39:08 -0400 > From: murdoch.dun...@gmail.com > To: R-help@r-project.org > Subject: [R] Summary stats in table > > Suppose I have data like this: > > A <- sample(letters[1:3], 1000, replace=TRUE) > B <- sample(LETTERS[1:2], 1000, replace=TRU

[R] Summary stats in table

2011-10-23 Thread Duncan Murdoch
Suppose I have data like this: A <- sample(letters[1:3], 1000, replace=TRUE) B <- sample(LETTERS[1:2], 1000, replace=TRUE) x <- rnorm(1000) I can get a table of means via tapply(x, list(A, B), mean) and I can add the marginal means to this using cbind/rbind: main <- tapply(x, list(A,B), mean)

Re: [R] summary in functions

2011-02-16 Thread Simon Blomberg
On 17/02/11 09:44, Sam Steingold wrote: summary() in functions seems to print nothing. str() does print something. why? summary() returns the summary information as its value. If you want to see this value from inside a function, use print(summary()). The reason you see the summary informat

[R] summary in functions

2011-02-16 Thread Sam Steingold
summary() in functions seems to print nothing. str() does print something. why? -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final) http://mideasttruth.com http://truepeace.org http://iris.org.il http://pmw.org.il http://jihadwatch.org http://ffii.org A year spent in artificial

Re: [R] summary for factors is not very informative

2011-02-15 Thread Thomas Lumley
It does print frequency stats, just not all of them. The reason it doesn't print all of them is that there could be thousands of them. If you want a table, use table() -thomas On Wed, Feb 16, 2011 at 11:31 AM, Sam Steingold wrote: > summary() for a factor prints: > >     ColName >  SNDK  :

[R] summary for factors is not very informative

2011-02-15 Thread Sam Steingold
summary() for a factor prints: ColName SNDK : 72 VXX : 36 MWW : 30 ACI : 28 FRO : 28 (Other):1801 it would have been much more useful if it additionally printed frequency stats as if by summary(aggregate(frame$ColName,by=list(frame$ColName),FUN=length)$x) -- Sam St

Re: [R] summary(list) is awesome, but I want more than summary

2011-01-08 Thread Duncan Murdoch
On 11-01-08 2:07 AM, Krishna Kirti Das wrote: When I load a table from a data source and run summary() on it, the summary gives me basic summary statistics I'm looking for, and it also discriminates between quantitative and qualitative data and summarizes them accordingly. For example, if I do th

[R] summary(list) is awesome, but I want more than summary

2011-01-08 Thread Krishna Kirti Das
When I load a table from a data source and run summary() on it, the summary gives me basic summary statistics I'm looking for, and it also discriminates between quantitative and qualitative data and summarizes them accordingly. For example, if I do this: mydata <- read.table("data.txt")

  1   2   3   >