powered by
Simulate data for a node with one parent
SimulateData1P(N, P1, b0.1, b1.1, sd.1)
Number of observations
Data vector of the parent node P1.
Intercept of b0.1 + b1.1*P1, where P1 is the parent of the corresponding node.
Slope of P1 for b0.1 + b1.1*P1, where P1 is the parent of the corresponding node.
Standard deviation for corresponding data generated nodes.
Vector
SimulateData for simulated data generating function.
# NOT RUN { Data1P <- SimulateData1P(N = 10^3, P1 = 1, b0.1 = 0, b1.1 = 1, sd.1 = 1) # }
Run the code above in your browser using DataLab