students.to.list: Function for converting the student characteristics into a...

Description Usage Arguments Examples

View source: R/students_to_list_function.r

Description

Function for converting the student characteristics into a list in which the first list element is a matrix as expected by the ZPDGrowthTrajectories function called by ZPDGrowthTrajectories() function

Usage

1
2
3
4
5
6
7
students.to.list(
  learn.rate,
  home.env,
  decay.rate,
  initial.ach,
  which.curriculum
)

Arguments

learn.rate

vector of learning rates, one for each student

home.env

vector of home environments, one for each student

decay.rate

vector of decay rates, one for each student

initial.ach

vector of achievement values, one for each student

which.curriculum

a vector of values indicating which version of the school curriculum should be presented during interval t. The numbers index list elements of the curriculum.start.points and curriculum.widths objects

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# learning rate
learn.rate <- c(.08, .10, .12, .18)

# decay rate
decay.rate <- c(.04, .03, .02, .01)

# initial achievement
initial.ach <- rep(0, times=4)

# quality of home environment
home.env <- c(.06, .12, .15, .20)

students.to.list(learn.rate=learn.rate, home.env=home.env, decay.rate=decay.rate,
                initial.ach=initial.ach,
                which.curriculum=c(rep(1, times=length(learn.rate)/2),
                rep(2, times=length(learn.rate)/2)))

## End(Not run)

mcbeem/ZPDGrowthTrajectories documentation built on May 18, 2020, 2:04 p.m.