knitr::opts_chunk$set(echo = TRUE)
The dad package provides tools for analysing multi-group data. Such data consist of variables observed on individuals, these individuals being organised into groups (or occasions). Hence, there are three types of objects: groups, individuals and variables.
For the analysis of such data, a probability density function is associated to each group. Some methods dealing with these functions are implemented:
fmdsd(continuous data) or
In order to facilitate the work with these multi-group data, the dad package uses objects of class
These objects are lists of data frames having particular formats.
Such objects are lists of data frames which have the same column names. Each data frame matches with an occasion (a group of individuals).
An object of class
"folder" is created by the functions
as.folder (see their help in R).
Ten rosebushes $A$, $B$, $\dots$, $J$ were evaluated by 14 assessors, at three sessions, according to several descriptors including their shape
Sha, their foliage thickness
Den and their symmetry
library(dad) data("roses") x <- roses[, c("Sha", "Den", "Sym", "rose")] head(x)
Coerce these data into an object of class
rosesf <- as.folder(x, groups = "rose") print(rosesf, max = 9)
Objects of class
"folderh" can be used to avoid redundancies in the data.
In the most useful case, such objects are hierarchical lists of two data frames
df2 related by means of a key which describes the “1 to N” relationship between the data frames.
They are created by the function
folderh (see its help in R for the case of three data frames or more).
Data about 5 rosebushes (
roseflowers$variety). For each rosebush, measures on several flowers (
library(dad) data(roseflowers) df1 <- roseflowers$variety df2 <- roseflowers$flower
Build an object of class
fh1 <- folderh(df1, "rose", df2) print(fh1)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.