search for: deciles

Displaying 20 results from an estimated 36 matches for "deciles".

Did you mean: decides
2006 Nov 16
1
getting a title in a plot during an lapply
In my code below tempa and tempb are numeric vectors that I combined into a dataframe along with the deciles of tempa. I have an lapply statement that goes through the dataframe and does ten plots according to the appropriate decile. The code is below and it works fine. There are no bugs so I figure there was no need to include structure statements on the data. Also, I don't want to use coplot because...
2010 May 06
1
How to rank matrix data by deciles?
...is the third decile among y[1:11,1] and y[2,1] is in the second decile I would like get a matrix that would return their ranks in decile, i.e., y[1,1] -> 3 y[2,1] -> 2 Your help is much appreciated! -- View this message in context: http://r.789695.n4.nabble.com/How-to-rank-matrix-data-by-deciles-tp2133496p2133496.html Sent from the R help mailing list archive at Nabble.com.
2005 Apr 21
2
Deciles and R
Hi everyone, I'm a new R user (if this is a really basic question, please do excuse me...) and I'm having some questions regarding a deciles problem. I have a variable which I need to categorize according to its deciles (X). However, this categorization should be made into another variable (call it NewVar). Ex. for the quartiles case (just for the sake of exposition, since I need deciles...), I would like to be able to generate the Ne...
2004 Aug 03
1
Data manipulation query
Hi, Not sure if I am making a simple problem complex but still here we go: I have a data frame with four columns say, X1 X2 X3 and X4. I want to break X4 into deciles and for each deciles obtained, I want to see corresponding elements of X1. Ideally, the output should be in a tabular fashion as shown below: Deciles 1 Deciles 2 .... Deciles 10 X1-1 X1-2 X1-99 X1-5 X1-3 X1-10 Where X1-1...X1-100 are elements of column X1 that categorized as pe...
2006 May 09
2
devide data into decile
I guess this is really basic. But I do not find an answer yet. I have a big data.frame. I would like to divede them into 10 deciles accounding to one of its member. Then I need a number for each decile with some computaion within each group. How to devide it?
2006 Mar 16
2
french secondary boxplot
bonjour, i'm a mathematic teacher and i have a question for R-developers : is it possible to have (in the future) a boxplot with whiskers from the first decile to the ninth decile, as usual in secondary french schools... by example : boxplot(serie,range=-1) for french boxplot ? cordialement, jean-pierre lyc?e jean zay orl?ans, france http://mathazay.free.fr/spip/
2007 Jul 10
1
exces return by mktcap decile for each year
...olumn to the data calculated as follows. For each year, I want to split the data by mc decile, then calculate the mean ret within that mc decile, and finally subtract that year's decile mean from the raw return. Then I want that mean adjusted ret to be the new column. I can get the market cap deciles with my.cut <- function(x) { cut( x, quantile( x, probs=seq(0,1,0.1), na.rm=TRUE)) } mc.deciles <- by( dat$mc, dat$yr, my.cut) I don't know how to associate the values in mc.deciles with a particular row of the original data frame dat. I don't think I can unlist mc.deciles becaus...
2010 Mar 08
1
Help with Hmisc, cut2, split and quantile
...quantile) how to get the barrier points between the different quantiles, and I can see how I would achieve this if I was just looking to split up a vector. However I am trying to break up the whole table based on those quantiles, not just the vector. The following code shows me the ranges for the deciles of the "Target" data: library(Hmisc) read_data=read.table("C:/Sample table.txt", head = T) table(cut2(Read_data$Target,g=10)) However I would like to be able to break the table into ten separate tables, each with both "Actual" and "Target" data, based on the...
2010 Jun 16
3
Decile
Hello comunity, I'm trying to find a similar function as decile of SPSS, NTILES (10) some of you know about that, I will appreciate your help in advance. In SPSS VARIABLES=Sales (A) /NTILES (10) /PRINT=NO for example if I have Next data input: case IdCust Sales Profit 1 265 140.81 314.31 2 266 1778.96 408.32 3 267 2663.66 820.85 4 268 2994.14 913.73 5 269 2185.58 686.64 6 271 105.21
2011 Nov 04
1
Decision tree model using rpart ( classification
...uster profile data to suitable number of clusters 2. Decision Tree: Using rpart classification tree for generating rules for segmentation using cluster number(cluster id) as target variable and variables from profile data as input variables. C) Using profile data (customers demographic data ) and deciles created based on behaviour 1. Deciles: Deciles customers to 10 groups based on some behavioural data 2. Decision Tree: Using rpart classification for generating rules for segmentation using Deciles as target variable and variables from profile data as input variables. In first two cases A and B...
2012 Oct 29
0
Tabular datos de Encuesta Continua de Hogares}
...denador, contrato de tv > para abonados e internet en su hogar. Para la poblacion urbana (capital + > interior urbano). Desagregado por decil de ingreso. Seria algo así: > > Acceso a TIC > En % de personas por decil de ingreso percapita sin valor locativo. Total > País Urbano > Deciles Computador Tv Abonados Internet > 1 53,6% 2,6% 5,8% > 2 51,5% 36,9% 10,6% > 3 52,1% 45,7% 17,9% > 4 53,8% 50,1% 24,4% > 5 54,3% 53,5% 28,1% > 6 58,8% 59,4% 37,6% > 7 62,8% 64,6% 45,3% > 8 67,5% 69,0% 54,5% > 9 75,0% 73,9% 63,8% > 10 81,4% 82,5% 72,6% > Total 59,4% 5...
2006 Apr 02
2
Boxplot
bonjour, je voudrais savoir s'il serait possible de sugg?rer aux d?veloppeurs de R de proposer une option suppl?mentaire pour les moustaches, ? savoir les placer sur d1 et d9 comme c'est pr?conis? dans les programmes du secondaire en France, option du style boxplot (serie,range=91) par exemple... i would like to know if it is possible to have (with the agrement of developpers)
2007 Oct 12
2
Plotting question
...e page. It looks great but the plots on the page go in the order 1 6 2 7 3 8 4 9 5 10 Where the numbers denote decile breakdowns. Is there an easy way to make them go from left to right so 1 2 3 4 5 6 7 8 9 10 I could try to stay with the first way and reorder the deciles but that would be tricky and beyond my current knowledge base. Thanks. -------------------------------------------------------- This is not an offer (or solicitation of an offer) to bu...{{dropped:22}}
2012 Mar 14
1
How to use ggplot to do the binned quantile plots(one type of scatter plot)?
How to use ggplot to do the binned quantile plots(one type of scatter plot)? Hi all, I have done scatter plot: plot(x, y). Now I wanted to do binned quantile plots... can ggplot2 help me? For example, we bin x data into 10 bins. For each bin, we draw the 10 deciles of the corresponding y data in that bin as points/dots. And then accross all bins, we would like to connect the corresponding decile points/dots together(something like equi-quantile or equi-decile curves)... How do I do that in R or ggplot2? Is there an existing function/command that can do this...
2005 Aug 03
2
using weighted.mean with tapply()
I am trying to calculate the weighted mean for a of 10 deciles and I get an error: > decile <- tapply(X=mat$trt1m, INDEX=mat$Rank, FUN=weighted.mean, w=mat$mcap) Error in FUN(X[[1]], ...) : 'x' and 'w' must have the same length All three of my inputs have the same length, as shown below, and the weighted.mean calculation works by itself,...
2006 Feb 21
6
How to sum values across multiple variables using a wildcard?
I have a dataframe called "data" with 5 records (in rows) each of which has been scored on each of many variables (in columns). Five of the variables are named var1, var2, var3, var4, var5 using headers. The other variables are named using other conventions. I can create a new variable called var6 with the value 15 for each record with this code: > var6=var1+var2+var3+var4+var5
2005 Jul 12
0
transition matrix and discretized data
...ying to do: # X is a two-comun data frame. column 1 is the period-one individuals' earnings and column two is the period-two. n <- nrow(X) #12000 sim <- runif(n, -.0001, .0001) X <- X + sim q <- 10 # in order to compute deciles. it could be quintiles, quartiles, whatever p <- seq(0,1,1/q) f.x <- quantile(X[,1], p, names=F) f.y <- quantile(X[,2], p, names=F) f.x[1] <- 0; f.y[1] <- 0 a <- cut(X[,1], f.x, right=T) b <- cut(X[,2],...
2012 Oct 28
1
Tabular datos de Encuesta Continua de Hogares
...nas en la población que posee ordenador, contrato de tv para abonados e internet en su hogar. Para la poblacion urbana (capital + interior urbano). Desagregado por decil de ingreso. Seria algo así: Acceso a TIC En % de personas por decil de ingreso percapita sin valor locativo. Total País Urbano Deciles Computador Tv Abonados Internet 1 53,6% 2,6% 5,8% 2 51,5% 36,9% 10,6% 3 52,1% 45,7% 17,9% 4 53,8% 50,1% 24,4% 5 54,3% 53,5% 28,1% 6 58,8% 59,4% 37,6% 7 62,8% 64,6% 45,3% 8 67,5% 69,0% 54,5% 9 75,0% 73,9% 63,8% 10 81,4% 82,5% 72,6% Total 59,4% 52,3% 31,5% Obviamente la muestra se debe...
2012 Jul 09
1
boxplot with "cut"
...1 30001 40000 100.53 1.731 1.752 1.610 5 1 40001 50000 100.53 3.056 2.931 3.631 6 1 50001 60000 100.53 1.960 2.013 2.459 I'm breaking the "GeneDensity" column into deciles, then making a box plot of the relationship between the GeneDensity parameter and each of the three "ReadCount" columns. Here's an example of one of my boxplot commands: boxplot(GeneDensity$ReadCount_Explant ~ cut(GeneDensitySorted$GeneDensity, breaks=10), ylim=c(0,40), ylab="RP...
2008 Sep 26
1
Error in Cut command - 'x' must be numeric?
Hi Everyone I have a data set I want to bucket into deciles. Have been trying (without) success to use cut and using online help to understand my error. Here is my code to read in a few sample rows. I want to then create deciles by this variable > a<-read.csv("c:/temp/petrol.csv",header=TRUE,sep=",") > a tot_rdm_amt 1...