Last data update: 2014.03.03

R: Growth of orange trees
OrangeR Documentation

Growth of orange trees

Description

The Orange data frame has 35 rows and 3 columns of records of the growth of orange trees.

Usage

Orange

Format

This data frame contains the following columns:

Tree

a factor indicating the tree on which the measurement is made.

age

a numeric vector giving the age of the tree (days since 1968/12/31)

circumference

a numeric vector of trunk circumferences (mm). This is probably “circumference at breast height”, a standard measurement in forestry.

Source

Draper, N. R. and Smith, H. (1998), Applied Regression Analysis (3rd ed), Wiley (exercise 24.N).

Pinheiro, J. C. and Bates, D. M. (2000) Mixed-effects Models in S and S-PLUS, Springer.

Examples

require(lattice)
xyplot(circumference ~ age, Orange, groups = Tree, type = c("g", "b"),
       auto.key = list(space = "right", lines = TRUE), aspect = "xy",
       xlab = "Age (days since 1968/12/31)", ylab = "Circumference (mm)")
## Not run: 
m1 <- nlmer(circumference ~ SSlogis(age, Asym, xmid, scal) ~ Asym|Tree,
            Orange, verbose = TRUE,
            start = c(Asym = 190, xmid = 730, scal = 350))
.Call("mer_optimize", m1, 1L, 1L, PACKAGE = "lme4")
print(m1)
ranef(m1)

## End(Not run)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MEMSS)
Loading required package: lme4
Loading required package: Matrix

Attaching package: 'MEMSS'

The following objects are masked from 'package:datasets':

    CO2, Orange, Theoph

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MEMSS/Orange.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Orange
> ### Title: Growth of orange trees
> ### Aliases: Orange
> ### Keywords: datasets
> 
> ### ** Examples
> 
> require(lattice)
Loading required package: lattice
> xyplot(circumference ~ age, Orange, groups = Tree, type = c("g", "b"),
+        auto.key = list(space = "right", lines = TRUE), aspect = "xy",
+        xlab = "Age (days since 1968/12/31)", ylab = "Circumference (mm)")
> ## Not run: 
> ##D m1 <- nlmer(circumference ~ SSlogis(age, Asym, xmid, scal) ~ Asym|Tree,
> ##D             Orange, verbose = TRUE,
> ##D             start = c(Asym = 190, xmid = 730, scal = 350))
> ##D .Call("mer_optimize", m1, 1L, 1L, PACKAGE = "lme4")
> ##D print(m1)
> ##D ranef(m1)
> ## End(Not run)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>