search for: proport

Displaying 20 results from an estimated 2317 matches for "proport".

Did you mean: proporta
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...
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 s...
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 s...
2023 Nov 07
1
make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe
...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 with symbol size proportional ## to the variable named total dotplot(agency ~ proportion, pch = 16, cex = bubble, data = dd) ## object 'bubble' not found dotplot(agency ~ proportion, pch = 16, cex = dd$bubble, data = dd)...
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(exp...
2009 Oct 07
3
graphics
...iated. Thank you Grant single<-read.table("C:\\Grant\\hatchfirstonly.txt",header=T) attach(single) names(single) par(mfrow=c(1,3)) maleage<- factor(maleage, labels = c("Old","Young")) colors <- c('gray', "navyblue") shapes <- c(17,19) proportion<-(eggs1-unhatch1)/eggs1 plot(proportion~maleage, xlab= "Age of Male ", ylab = "Proportion of Eggs Hatched") plot(proportion~femweight, pch=shapes[maleage], col=colors[maleage],bg="gray", xlab= "Female Weight (grams) ", ylab = " Proportion of Eggs H...
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...
2008 Oct 21
1
Simulation of data
...s 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 1:100){ if (z[i]>1.75){ prop[i]<-1} else{prop[i]<-0}} proportion<-mean(prop) ecart<-sqrt((proportion*(1-proportion))/k) while(ecart>=d){ prop_<-0 w<- rnorm(1, 0, 1) z<-c(z,w) {if (w>1.75){ prop_<-1} else{ prop_<-0} } prop<-c(prop, prop_) proportion<-proportion+(prop[k+1]-proportion/(k+1)) ecart<-sqrt((proporti...
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 'cex' values get split properly. This is done generally using the 'subscr...
2016 Mar 24
3
summary( prcomp(*, tol = .) ) -- and 'rank.'
...I get for the last line, the summary.prcomp(.) call : > summary(pZ) # only ~14 PCs (out of 32) Importance of components: PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 Standard deviation 3.6415 2.7178 1.8447 1.3943 1.10207 0.90922 0.76951 0.67490 Proportion of Variance 0.4352 0.2424 0.1117 0.0638 0.03986 0.02713 0.01943 0.01495 Cumulative Proportion 0.4352 0.6775 0.7892 0.8530 0.89288 0.92001 0.93944 0.95439 PC9 PC10 PC11 PC12 PC13 PC14 Standard deviation 0.60833 0.51638 0.49048 0.44452 0.40326 0.3904 P...
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 wh...
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(...
2016 Mar 24
3
summary( prcomp(*, tol = .) ) -- and 'rank.'
I agree with Kasper, this is a 'big' issue. Does your method of taking only n PCs reduce the load on memory? The new addition to the summary looks like a good idea, but Proportion of Variance as you describe it may be confusing to new users. Am I correct in saying Proportion of variance describes the amount of variance with respect to the number of components the user chooses to show? So if I only choose one I will explain 100% of the variance? I think showing 'Total...
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...
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 prop...
2012 Aug 02
2
metafor- interpretation of moderators test for raw proportions
Hello metafor users, I'm using metafor to perform a single-effect summary estimate of the raw proportion of patients experiencing a post-operative complication, and I'm interested in seeing if this proportion differs between the three most commonly used surgical techniques. The software is working as expected, but I would like to double check on the interpretation of my mixed-effect model summ...
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 density of k with a proportional error distributio...
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 examp...