search for: decil

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

Did you mean: decir
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 becau...
2010 May 06
1
How to rank matrix data by deciles?
Hi R users, I have a matrix of data similar to: > y=matrix(rnorm(55),ncol=5) I would like to know to which decile each number belongs compared to the numbers in its column. Say y[1,1] 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 messa...
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...
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...
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
I have a data frame, lets call it dat, with 3 columns ( mc, yr, ret) which represent market cap, year, and return. mc is a factor, mc, and ret are real numbers. I want to add a column 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=TRU...
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 t...
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 26...
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...
2012 Oct 29
0
Tabular datos de Encuesta Continua de Hogares}
...ogar (1=si, 2=no) > > El cuadro que quiero armar en R (que ya obtuve en excel). Debe mostrar la > proporción de personas 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...
2006 Apr 02
2
Boxplot
...ustaches, ? 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) a boxplot with whiskers from the first decile to the ninth decile, as usual in secondary french schools... by example : boxplot(serie,range=91) for french boxplot ? jean-pierre gerbal http://mathazay.free.fr/spip/
2007 Oct 12
2
Plotting question
I am constructing plots ( regular not lattice ) and my initial command is par(mar=c(3,4,2,2), mfcol=c(5,2)) and then I create 10 plots on the 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. ------------------------------------------------------...
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 th...
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 itsel...
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
Hi there, I have data on earnings of 12000 individuals at two points in time. I intend to construct a transition matrix, where the typical element, p_ij, gives the probability that an individual ends at the j-th decile of the earnings distribution given that he was was initially at the i-th decile. Thus, this is a bi-stochastic matrix. The problem is that the income data is nearly discrete in the sense that many individuals hold the same income level at each point. For instance, there are 1400 individuals who ea...
2012 Oct 28
1
Tabular datos de Encuesta Continua de Hogares
...) Posee internet en su hogar (1=si, 2=no) El cuadro que quiero armar en R (que ya obtuve en excel). Debe mostrar la proporción de personas 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...
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="...
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...