search for: circumference

Displaying 20 results from an estimated 31 matches for "circumference".

2011 Mar 05
2
Grouping data in ranges in table
Working with the built in R data set Orange, e.g. with(Orange, table(age, circumference)). How should I go about about grouping the ages and circumferences in the following ranges and having them display as such in a table? age range: 118 - 664 1004 - 1372 1582 circumference range: 30-58 62- 115 120-142 145-177 179-214 Thanks for any feedback and insights, as I hoping for an ou...
2011 Apr 08
3
xyplot, groups and colors
...ts, I am trying to plot a bunch of growth curves and would like to get some more control over groups and line colors than I seem to have. Example: # make some data dat <- Orange dat$group <- ifelse(dat$Tree%in%c('1','4','5'), 'A', 'B') # plot xyplot(circumference~age, dat, groups=group) # now use lines to make the growth curve more visible xyplot(circumference~age, dat, groups=group, type='l') # ugly, because of the 'return' lines # to fix this set groups to Tree xyplot(circumference~age, dat, groups=Tree, type='l') # better, but n...
2006 May 17
1
nlme model specification
Hi folks, I am tearing my hair out on this one. I am using an example from Pinheiro and Bates. ### this works data(Orange) mod.lis <- nlsList(circumference ~ SSlogis(age, Asymp, xmid, scal), data=Orange ) ### This works mod <- nlme(circumference ~ SSlogis(age, Asymp, xmid, scal), data=Orange, fixed = Asymp + xmid + scal ~ 1, start = fixef(mod.lis) ) ### I try a slightly different model specifi...
2008 Mar 25
1
Combining several mappings in ggplot2
...ut I haven't found how: "We can also create redundant mappings, mapping the same variable to multiple aesthetics. This is most useful when producing a graphic for both colour and black and white display." Here's what I have to get the color ggplot(data = Orange, aes(x = age, y = circumference, color = Tree)) + geom_line() if i try this I get an error: ggplot(data = Orange, aes(x = age, y = circumference, color = Tree, linetype = Tree)) + geom_line() or ggplot(data = Orange, aes(x = age, y = circumference, color = Tree)) + geom_line() + scale_linetype_manual(value = c(1:5)) I'd be...
2008 Sep 27
1
seg.fault from nlme::gnls() {was "[R-sig-ME] GNLS Crash"}
...inal) VW> model with an exponential serial correlation function to VW> the Orange tree data set. However, R crashes frequently VW> when using the gnls() function. With the following VW> simple example, I was able to reproduce the problem. VW> gnls.exp <- gnls(circumference ~ Asym/(1 + exp(-(age-xmid)/scal)) , VW> data = Orange, correlation = corExp(form = ~1 | Tree), VW> start = c(Asym=150, xmid=750, scal=300)) Yes, I can reproduce it (on a Linux (RHEL 5) 64bit server), using R 2.8.0 alpha : Use this for(i in 1:20)# for MM: ca. 8 to 10 times --> se...
2007 Jun 18
1
how to obtain the OR and 95%CI with 1 SD change of a continue variable
...How to obtain the odds ratio (OR) and 95% confidence interval (CI) with 1 standard deviation (SD) change of a continuous variable in logistic regression? for example, to investigate the risk of obesity for stroke. I choose the happening of stroke (positive) as the dependent variable, and waist circumference as an independent variable. Then I wanna to obtain the OR and 95% CI with 1 SD change of waist circumference.how? Any default package(s) or options in glm available now? if not, how to calculate them by hand? many thanks. yours,sincerely, Xingwang Ye
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
Hello Everyone, I have three variables: Waist circumference (WC), serum triglyceride (TG) level and gender. Waist circumference and serum triglyceride is numeric and gender (male and female) is categorical. From these three variables, I want to calculate the "Lipid Accumulation Product (LAP) Index". The equation to calculate LAP is different for m...
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...ct code depends on whether your variables are in a data frame or list or whatever, which you failed to specify. If so, ?with may be useful. Cheers, Bert On Fri, Nov 3, 2023 at 3:43?AM Md. Kamruzzaman <mkzaman.m at gmail.com> wrote: > Hello Everyone, > I have three variables: Waist circumference (WC), serum triglyceride (TG) > level and gender. Waist circumference and serum triglyceride is numeric and > gender (male and female) is categorical. From these three variables, I want > to calculate the "Lipid Accumulation Product (LAP) Index". The equation to > calculate LA...
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...w variables based on two numeric variables and one dichotomize conditional category variables. Message-ID: <CAGbxoeGjsxZKQ6qijEMq-X-5doqnQQS1jjPDDrGT6hH5xWqOKQ at mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hello Everyone, I have three variables: Waist circumference (WC), serum triglyceride (TG) level and gender. Waist circumference and serum triglyceride is numeric and gender (male and female) is categorical. From these three variables, I want to calculate the "Lipid Accumulation Product (LAP) Index". The equation to calculate LAP is different for m...
2008 Jan 11
0
nlme model specification (revisit)
...e using 'nlme' function, I have encountered the similar problem Dr. Stevens and Dr. Graves observed (please see the posts: https://stat.ethz.ch/pipermail/r-help/2006-May/105832.html ). I have tried Dr. Stevens's original example, the problem is still there, > mod.lis <- nlsList(circumference ~ SSlogis(age, Asymp, xmid, scal), + data=Orange ) > > mod <- nlme(circumference ~ SSlogis(age, Asymp, xmid, scal), + data=Orange, + fixed = Asymp + xmid + scal ~ 1, + start = fixef(mod.lis) ) > > mod <- nlme(circumference ~...
2004 Jan 12
2
Re: Nauti miles
> > I might as well add to the offtopic thread... why are natuical miles longer than "regular" miles? Andrew A nautical mile is 1 minute of latitude. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040112/6658a905/attachment.htm
2004 Dec 03
2
Label data points in scatterplot matrices
Hello, I am new to R and would like to know how to label data points in the matrices of scatterplots made by the pairs() command. To be more specific, I want to assign a number to each data point, instead of the small circumference that appears as a data point. If anyone here knows if its possible to do this with R, I would greatly appreciate your help. Thank you, Mauricio Esguerra PhD candidate Chemistry and Chemical Biology Department Rutgers, the State University of New Jersey
2007 Jan 26
1
bootstrap bca confidence intervals for large number of statistics in one model; library("boot")
...cted, accelerated (BCA) confidence intervals for a large number of statistics computed from a single dataset. For instance, one might like to get (so as to plot graphically) bootstrap confidence bands for the fitted values in a regression model. (Example: Chiu S et al., Early Acceleration of Head Circumference in Children with Fragile X Syndrome and Autism. Journal of Developmental & Behavioral Pediatrics 2007;In press. In this paper we plot the estimated trajectories of head circumference for two different groups, computed by linear mixed-effects models, with confidence bands obtained by bootstrap.)...
2023 Nov 03
2
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...w variables based on two numeric variables and one dichotomize conditional category variables. Message-ID: <CAGbxoeGjsxZKQ6qijEMq-X-5doqnQQS1jjPDDrGT6hH5xWqOKQ at mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hello Everyone, I have three variables: Waist circumference (WC), serum triglyceride (TG) level and gender. Waist circumference and serum triglyceride is numeric and gender (male and female) is categorical. From these three variables, I want to calculate the "Lipid Accumulation Product (LAP) Index". The equation to calculate LAP is different for m...
2023 Nov 03
1
[EXTERNAL] RE: I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...w variables based on two numeric variables and one dichotomize conditional category variables. Message-ID: <CAGbxoeGjsxZKQ6qijEMq-X-5doqnQQS1jjPDDrGT6hH5xWqOKQ at mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hello Everyone, I have three variables: Waist circumference (WC), serum triglyceride (TG) level and gender. Waist circumference and serum triglyceride is numeric and gender (male and female) is categorical. From these three variables, I want to calculate the "Lipid Accumulation Product (LAP) Index". The equation to calculate LAP is different for m...
2011 Mar 09
1
How does the cex parameter scale circles?
I'm wondering how the cex parameter is used to scale circles (i.e. does it scale the radius, diameter, area, circumference, etc.?). In my case I'm using lattice with filled circles (pch=19). Based on example, it looks like R scales the radius of the circle: library(lattice) dta<-data.frame(x=rep(1,6),y=rep(1,6),sz=c(1,2,4,8,16,32)) xyplot(x~y,data=dta,col=rgb(0,0,0,50,maxColorValue=255),cex=dta$sz,pch=19)...
2010 Jun 18
4
Drawing sample from a circle
Hi, I would like to draw 10 uniformly distributed sample points from a circle with redius one and centered at (0,0). Is there any R function to do that?   Thanks, [[alternative HTML version deleted]]
2017 Feb 22
0
Crash in the latest release
...x_1.2-8 loaded via a namespace (and not attached): [1] minqa_1.2.4 MASS_7.3-46 compiler_3.4.0 tools_3.4.0 [5] Rcpp_0.12.9 splines_3.4.0 nlme_3.1-131 grid_3.4.0 [9] nloptr_1.0.4 lattice_0.20-34 > startvec <- c(Asym = 200, xmid = 725, scal = 350) > (nm1 <- nlmer(circumference ~ SSlogis(age, Asym, xmid, scal) ~ Asym|Tree, + Orange, start = startvec)) *** Error in `/usr/local/src/R-devel/bin/exec/R': malloc(): memory corruption: 0x0e3df988 *** Aborted (core dumped) --------------------- The valgrind version is interesting too: it complains and then fini...
2003 Sep 26
1
empty postscript output of figures
...9, horizontal = F, onefile = FALSE, paper = "special") par(mfrow=c(2,1)); par(mfg=c(1,1)); plot(bidia,weight,xlab="birthweight",ylab="head diameter"); abline(birth.lm1$coefficients); par(mfg=c(2,1)); plot(abdcir,weight,xlab="birthweight",ylab="abdomnial circumference"); abline(birth.lm2$coefficients); dev.off() Hope you can help me. Best Andreas --- [[alternative HTML version deleted]]
2017 Feb 22
0
[Lme4-authors] Crash in the latest release
...namespace (and not attached): > [1] minqa_1.2.4 MASS_7.3-46 compiler_3.4.0 tools_3.4.0 > [5] Rcpp_0.12.9 splines_3.4.0 nlme_3.1-131 grid_3.4.0 > [9] nloptr_1.0.4 lattice_0.20-34 > >> startvec <- c(Asym = 200, xmid = 725, scal = 350) >> (nm1 <- nlmer(circumference ~ SSlogis(age, Asym, xmid, scal) ~ Asym|Tree, > + Orange, start = startvec)) > *** Error in `/usr/local/src/R-devel/bin/exec/R': malloc(): memory > corruption: 0x0e3df988 *** > Aborted (core dumped) > > --------------------- > > The valgrind version is inter...