Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
For loops Example
#R version 3.3.2 #Calculate the standard error using the following sample sizes #Sample size: 50,100,150 p=0.45 Sample=c(50, 100, 150) for(N in Sample) {Se=(p*(1-p)/N) print(Se)} #Calculate the confidence interval given certain values Conf=function(X, S, N){ X+c(1, -1)*pnorm(0.975)*(S/sqrt(N))}
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Camelcase
Mandelbrot set with ODE and Euler's method
sentiment analysis
Sierpinski triangle - changed
Permutations&Combinations
Snowflake curve
Multinomial Logistic Regression Sample
Linear_Regression_sri
Variance and Standard Deviation
Hiring Discrimination
Please log in to post a comment.