school: Function for defining the school curriculum function as a...

Description Usage Arguments Examples

View source: R/school_function.r

Description

Function for defining the school curriculum function as a piecewise linear equation called by school.growth()

Usage

1
school(x, slope1, slope2, start, end)

Arguments

x

achievement value

slope1

the slope of the lower leg of the school curriculum

slope2

the slope of the upper leg of the school curriculum

start

the curriculum starting location

end

the curriculum ending location

Examples

1
2
3
4
5
6
7
## Not run: 
x <- seq(0, 1, .001)
plot(x, school(x, slope1=10, slope2=30, start=.2, end=.4), "l")
# mark start and end points
 abline(v=c(.2, .4), lty="dotted", col="red")

## End(Not run)

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