eg8: Example 8 of equitable system

View source: R/Equitable_Transform.R

eg8R Documentation

Example 8 of equitable system

Description

f(x) , g(t) amd u(x) are samopled from normal random distributions. g is then ordered from lowest to highest Good for simulating equitable phenology systems

Usage

eg8(
  rmult,
  cmult,
  mf = 5,
  mg = 1,
  mu = 5,
  sdf = 2,
  sdg = 1,
  sdu = 3,
  seedf = FALSE,
  seedg = TRUE,
  seedu = FALSE
)

Arguments

rmult

resolution of sampling of t variable rmult*15 is the number of points sampled

cmult

resolution of sampling of x variable cmult*10 is the number of points sampled

mf

10 (default) mean of f(x)

mg

0 (default) mean of g(x)

mu

10 (default) mean of u(x)

sdf

0.75 (default) standard deviation of f(x)

sdg

1 (default) standard deviation of g(x)

sdu

0.2 (default) standard deviation of u(x)

Details

f(x) random normal distribution with mean mf and standard deviation sdf u(x) random normal distribution with mean mu and standard deviation sdu g(x) random normal distribution with mean mg and standard deviation sdg

Value

matrix of equitable data

Examples

d<-eg8(rmult=4,cmult=4)       # 60x40 data set
 #transform this data set and then show bagplot intersetions
Td<-transformE(d=d)
aa<-a_b_bagplot(Td=Td,xlim=c(-0.25,0.25),ylim=c(-5,5))

d<-eg8(3,3)       # 45x30 data set
d<-eg8(1,10)      # 15x100 data set
d<-eg8(10,1)      # 150x10 data set
d<-eg8(15,15)    # 150x100 data set


celphin/Equitable documentation built on Jan. 23, 2023, 11:02 p.m.