search for: proportions

Displaying 20 results from an estimated 2323 matches for "proportions".

Did you mean: proportion
2011 Mar 14
2
proportional symbol map ggplot
Hello, we want to plot a proportional symbol map with ggplot. Symbols' area should have the same proportions as the scaled variable. Hereby an example we found on http://www.r-bloggers.com/bubble-chart-by-using-ggplot2/ . In this example we see the proportions of the symbols' area are different from the proportions of the scaled variable: crime <- read.csv("http://datasets.flowingdata.com...
2011 Oct 05
1
Dealing with proportions
Dear list, I have very little experience in dealing with proportions, i am sure this is a very simple question but i could find no suitable answer beyond doing a chi-sq test and then using the Marascuilo procedure as a post-hoc analysis. I am simply wanting to know if the proportions ( i.e the number of Yes / No) significantly differ between the cases and if so wh...
2010 Sep 13
2
proportion
Hi , SO i have been on a role of asking simple questions lately. So much for feeling like im getting this R business. I wrote a script 2 weeks ago that utilized "proportion" to turn values in a table (from "table") into proportions to then graph. I now get an error that proportion is not a function so im confused. I ran the script a few times and im thinking maybe i had another library loaded from a previous process and that it wasnt listed in my script and now isnt being loaded. So question is what library do i need to lo...
2023 Nov 07
1
make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe
Hello. My question is in the subject line. Using R 4.1.3 on Windows 10. Commented MWE below. Thanks. --Chris Ryan library(dplyr) library(lattice) ## fabricate a dataframe dd <- data.frame(agency = sample(LETTERS, size = 5), total = sample(100:200, size = 5), las = sample(20:40, size = 5)) dd <- dd %>% mutate(proportion = las/total, bubble = total/100) ## attempt to make a dotplot
2012 Mar 19
4
regression with proportion data
Hello, I want to determine the regression relationship between a proportion (y) and a continuous variable (x). Reading a number of sources (e.g. The R Book, Quick R,help), I believe I should be able to designate the model as: model<-glm(formula=proportion~x, family=binomial(link="logit")) this runs but gives me error messages: Warning message: In eval(expr, envir, enclos) :
2009 Oct 07
3
graphics
Dear Sir, I am using the following cos which creates a 3 panel figure on one image. However the legend function i am using only allows the legend to be placed within the axes of one of the graphs. The plots however do not allow for a logend to be places within the axes do to the location of points on the graph. I can add the legend later using imaging software such as paint but i lose
2006 Mar 01
2
glm binomial with zero proportions
Hello. I must fit a logistic regression to data in the form of proportions, but in which some of the proportions are zero. I therefore cannot use the glm function with a binomial link since the link function is not defined for p=0 or 1. What other solutions are available? Any references to this specific problem (i.e. regression using proportions, of which some are zero...
2008 Oct 21
1
Simulation of data
Hi listers, I am working on a program of statistical analysis of simulated data and I've been searching the error at the program, but I didn't find it! It is something about the WHILE procedure, the error says: Error in while (ecart >= d) { : missing value where TRUE/FALSE needed Thanks in advance! M?rcio k<-100 d<-0.00112 z<-rnorm(100, 0, 1) prop<-rep(0,100) for (i in
2008 Nov 30
2
Graphics for proportion within factor
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I am looking to draw what I hoped was a simple plot of proportion WITHIN a strata, save % males by site. I seem to be able to get proportion of males, by site, where the proportion is across the whole dataset, but not the proportion within each site. thanks in advance, Rob [[alternative HTML version deleted]]
2023 Nov 07
1
make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe
Handling NSE in these kinds of examples is a pain in lattice. I would suggest using with() and dropping the data argument for simple examples, e.g., dd |> mutate(new.proportion = las/total, new.bubble = total/100) |> with(dotplot(agency ~ new.proportion, pch = 16, cex = new.bubble)) But if you care about multi-panel plots, you also need to be careful about making sure that the
2016 Mar 24
3
summary( prcomp(*, tol = .) ) -- and 'rank.'
...PC9 PC10 PC11 PC12 PC13 PC14 Standard deviation 0.60833 0.51638 0.49048 0.44452 0.40326 0.3904 Proportion of Variance 0.01214 0.00875 0.00789 0.00648 0.00534 0.0050 Cumulative Proportion 0.96653 0.97528 0.98318 0.98966 0.99500 1.0000 > which computes the *proportions* as if there were only 14 PCs in total (but there were 32 originally). I would think that the summary should or could in addition show the usual "proportion of variance explained" like result which does involve all 32 variances or std.dev.s ... which are returned from the svd() anywa...
2006 Jul 07
6
parametric proportional hazard regression
Dear all, I am trying to find a suitable R-function for parametric proportional hazard regressions. The package survival contains the coxph() function which performs a Cox regression which leaves the base hazard unspecified, i.e. it is a semi-parametric method. The package Design contains the function pphsm() which is good for parametric proportional hazard regressions when the underlying base
2009 Oct 16
1
Frequencies, proportions & cumulative proportions
Dear R-Helpers, I've looked high and low for a function that provides frequencies, proportions and cumulative proportions side-by-side. Below is the table I need. Is there a function that already does it? Thanks, Bob > # Generate some test scores > myValues <- c(70:95) > Score <- ( sample( myValues, size=1000, replace=TRUE) ) > head(Score) [1] 77 71 81 88 83 93 > >...
2008 Oct 22
2
suboptimal lp solutions
Hi list, I want to find the total maximum resources I can spend given a set allocation proportion and some simple budget constraints. However, I get suboptimal results via lp and friends (i.e. lpSolve and simplex in the linprog and boot) . For example: library(lpSolve) proportions = c( 0.46, 0.28, 0.26) constraints = c( 352, 75, 171) lp(objective.in = proportions, const.mat = diag(c(1,1,1)), const.rhs=constraints, const.dir=rep('<=',3), direction='max' ) ## > Success: the objective function is 227.38 227.38 * proportions #[1] 104.5948...
2016 Mar 24
3
summary( prcomp(*, tol = .) ) -- and 'rank.'
...PC14 > > Standard deviation 0.60833 0.51638 0.49048 0.44452 0.40326 0.3904 > > Proportion of Variance 0.01214 0.00875 0.00789 0.00648 0.00534 0.0050 > > Cumulative Proportion 0.96653 0.97528 0.98318 0.98966 0.99500 1.0000 > > > > > > > which computes the *proportions* as if there were only 14 PCs in > > total (but there were 32 originally). > > > > I would think that the summary should or could in addition show > > the usual "proportion of variance explained" like result which > > does involve all 32 variances or std....
2012 Aug 01
1
"metafor" package, proportions: single groups wrt to a categorical dependent variable‏
Dear Dushanthi, Please keep your e-mails on the R-Help list, where Michael has already given you some excellent advice. As Michael already explained, metafor can handle proportions, but does not have any specific functionality for categorical variables with more than 2 levels (at the moment). So, if it is logical and possible to do so, you could collapse the levels of the categorical outcome to 2 levels and then proceed with the proportions. To be specific, what you need is t...
2007 Jan 07
1
Partial proportional odds logistic regression
R-experts: I would like to explore the partial proportional odds models of Peterson and Harrell (Applied Statistics 1990, 39(2): 205-217) for a dataset that I am analyzing. I have not been able to locate a R package that implements these models. Is anyone aware of existing R functions, packages, etc... that might be used to implement the partial proportional odds models? Brant Inman
2012 Aug 02
2
metafor- interpretation of moderators test for raw proportions
...0.1471 4.5283 <.0001 *0.3777 0.9541 * *** Complex *0.6938* 0.1306 5.3136 <.0001 * 0.4379 0.9498* ***/ My suspicion is that the test of moderators is addressing the hypothesis that the proportion of my outcome is not zero in any of the three groups, because all the estimated proportions appear to be well within the confidence bounds of the other two groups. Is this correct? If it is, I would appreciate any suggestions on how I would change that hypothesis test, so that I am testing whether the proportion in group 1 = the proportion in group 2 = the proportion in group 3? Thanks...
2011 Jan 02
1
How to compute the density of a variable that follows a proportional error distribution
Hello, I am trying to compute the density of a variable k that is either (1) Normally distributed; (2) Log-Normally distributed; or (3) follows proportional error distribution. I tried to search R-help and the answer for normal distribution was easy to find (please see 1c). I am not sure if my formula for dlnorm is correct (please see 2c below)? I really don't know what function to use for the
2008 Oct 21
2
Question about glm using R
Good morning, I am using R to try to model the proportion of burned area in Portugal. The dependent variable is the proportion. The family used is binomial and the epsilon would be binary. I am not able to find the package to be used when the proportion (%) has to be used in glm. Could someone help me? I am using normal commands of glm.. for example: glm_5<- glm(formula=p~Precipitation,