Learn R Programming

LMMstar (version 1.1.0)

restaureNA: Restaure NA

Description

Restaure NA in the user output that have been excluded when fitting the LMM.

Usage

restaureNA(object, index.na, level, cluster)

Arguments

object

results when NA should be added to match the user input.

index.na

[integer vector] index of the missing values.

level

[character] Should missing observations, indicated by the argument index.na, be restaured ("obs") or should missing clusters, indicated by the discrepancy between the name of the object and the argument cluster, be restaured ("cluster").

cluster

[list] list containing the number of cluster (n), name of the clusters (levels), and integer associated with each clusters (index).