simdata: Simulate data for back-projection exercises

Description Usage Arguments Value Author(s) Examples

Description

Creates identically shaped but offset multivariate normal groups

Usage

1
simdata(vars = c(10, 10, 10), cors = 0.8, npts = 200, seed, m1a = rep(0, length(vars)), offset = 1, offset2 = 0)

Arguments

vars

within-group variances

cors

within-group correlations

npts

number of points in each group (will be repeated as necessary)

seed

random-number seed

m1a

means of first group

offset

offset(s) in the first PC direction

offset2

offset(s) in the second PC direction

Value

a data frame containing the "data" for each group, followed by a factor specifying the group

Author(s)

Ben Bolker

Examples

1
2
   X = simdata(offset=10,offset2=3)
   plot_multigrp(X)

bbolker/cpcbp documentation built on May 11, 2019, 9:28 p.m.