Learn R Programming

nestedmodels (version 1.1.0)

example_nested_data: Example nested data

Description

A dataset containing example data that can be nested. Mainly used for examples and testing.

Usage

example_nested_data

Arguments

Format

A tibble with 1000 rows and 7 variables

id

A column that can be nested, ranging from 1 to 20.

id2

Another column that can be nested, ranging from 1 to 10.

x

A numeric column that depends on 'id'.

y

A sequential numeric column (with some added randomness), independent of the other columns.

z

A column dependent on id, id2, x and y.

a

A randomly generated numeric column, ranging from 1 to 100.

b

A randomly generated numeric column, centred around 50.

Examples

Run this code
example_nested_data

Run the code above in your browser using DataLab