Description Usage Arguments Examples
View source: R/students_to_list_function.r
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
1 2 3 4 5 6 7 | students.to.list(
learn.rate,
home.env,
decay.rate,
initial.ach,
which.curriculum
)
|
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.