search for: splinedata

Displaying 1 result from an estimated 1 matches for "splinedata".

Did you mean: linedata
2009 Nov 05
1
Simulate data for spline/piecewise regression model
...values by comparing each x-value to the knot# for (i in 1:30) { if (X[i] <= knot) Y[i] = beta0+beta1*X[i] else Y[i] = gamma0+gamma1*X[i] } #Binding/combining the x- and y-values in one data set# DATA = cbind(X, Y) #This writes the DATA to a separate file# write.table(DATA, "SplineData.dat")