Open gzbib opened 4 years ago
Hello, Thanks for letting me know, I will email you with the instructions in a moment, there was a change of the template On Friday, January 24, 2020, 08:43:53 AM CST, gzbib notifications@github.com wrote:
No Content is available for Lab02 when I open the assignment in Canvas.
Kindly assist.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello professor,
Is there any way I can get an extension for the assignment? I am trying since Mondy to access the assignment.
Best, Ghida
On Fri, 24 Jan 2020, 5:37 pm itsapara, notifications@github.com wrote:
Hello, Thanks for letting me know, I will email you with the instructions in a moment, there was a change of the template On Friday, January 24, 2020, 08:43:53 AM CST, gzbib < notifications@github.com> wrote:
No Content is available for Lab02 when I open the assignment in Canvas.
Kindly assist.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MOHB524XNT2GGYRN73Q7MDNJA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3FRQA#issuecomment-578181312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MIXVN2P2RC3VNJNTGTQ7MDNJANCNFSM4KLHFKRA .
Please try this link for the R template: DS4PS/cpp-523-spr-2020
|
DS4PS/cpp-523-spr-2020
Course shell for CPP 523 Foundations of Program Evaluation I for Spring 2020. - DS4PS/cpp-523-spr-2020 |
|
|
https://github.com/DS4PS/cpp-523-spr-2020/blob/master/labs/lab-02-TEMPLATE.rmd
On Friday, January 24, 2020, 08:43:53 AM CST, gzbib <notifications@github.com> wrote:
No Content is available for Lab02 when I open the assignment in Canvas.
Kindly assist.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I was able to access the assignment. I just have one question since I am somehow confused. Should I first install R Studio to solve the questions?
@gzbib Yes, you will need R to complete assignments.
On the course website there is a section on installing and using R for the class. I recommend the video on R Studio:
Under the Resources tab there are additional materials for regression in R:
If you download the R Markdown template provided in Lab 02 instructions you will see that for the first couple of assignments you mostly need to fill in the blanks left for answers. The rest of the details of the document are already completed.
Noted. I will be working on the assignment. However, I am not sure where I need to insert the answers. Should I add my changes on the template itself?
On Fri, Jan 24, 2020 at 8:57 PM Jesse Lecy notifications@github.com wrote:
@gzbib https://github.com/gzbib Yes, you will need R to complete assignments.
On the course website there is a section on installing and using R for the class. I recommend the video on R Studio:
[image: image] https://user-images.githubusercontent.com/1209099/73095678-5fbaf980-3ea0-11ea-9205-c97334288da0.png
Under the Resources tab there are additional materials for regression in R:
[image: image] https://user-images.githubusercontent.com/1209099/73095748-837e3f80-3ea0-11ea-9d4c-dcf1497d8e5e.png
If you download the R Markdown template provided in Lab 02 instructions you will see that for the first couple of assignments you mostly need to fill in the blanks left for answers. The rest of the details of the document are already completed.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MPVBVHB37AHLDNNMZTQ7M22JA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3X4WY#issuecomment-578256475, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MNGSI4RFPJ32MEDE6TQ7M22JANCNFSM4KLHFKRA .
yep! then you will knit and submit the HTML versions.
Alright. I am actually a little bit confused about R, i went over the tutorials but I think I am missing something. I am not able to use some of the functions since i cannot apply them directly to the model. I am always getting an error that i cannot use the list as parameter to get the standard deviation for example.
On Sat, 25 Jan 2020, 12:19 am Jesse Lecy, notifications@github.com wrote:
yep! then you will knit and submit the HTML versions.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MNHRPCKFO3SOJRCPELQ7NSQTA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4ISJA#issuecomment-578324772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MPXTNRZ6MYZPLNZ5QTQ7NSQTANCNFSM4KLHFKRA .
The LAB-02 TEMPLATE provides the code needed to draw the graphic. You ONLY need to provide the correct slope and standard error at the top of the script. You will type these two numbers into the first two lines in the script (examples of -3 for b1 and 0.25 for se provided here).
Once those values are provided you should be able to knit the file, render the HTML file you will submit for solutions.
# add appropriate values for b1 and se from the regression table
b1 <- -3
se <- 0.25
# no need to change anything below
...
If you are having trouble knitting, please email Professor Tsapara or myself. If your file doesn't knit, it might be a package set-up issue. The basics of R are covered in CPP 526, so if you are only taking CPP 523 we can help with your R questions since you are not being graded on R skills specifically in 523.
The tutorials are helpful. Try to watch the Tour of R Studio video if you want a nice intro to the platform.
Hello,
My apologies for sending a lot of emails, but I am trying to understand the material as fast as I can.
I am actually new to R language and to statistics in general; I wasn't aware that it is better to take CPP 526 in parallel. What do you mean by knitting exactly?
Also, I am note sure how you exported b1 and se, knowing that the regression table I am looking at is different (as attached). Maybe I got this wrong?
Plus, I am aware that to calculate the Confidence Interval, I need to get the mean, standard deviation, and standard errors (average + or - zscore * standard error). However, I am not able to translate this into R.
The R tour video was beneficial but I am still missing the right syntax.
Thank you for bearing with me.
Best, Ghida
On Sat, Jan 25, 2020 at 1:32 AM Jesse Lecy notifications@github.com wrote:
The template provides the code needed to draw the graphic. You need to provide the correct slope and standard error for each model. You will type these two numbers into the first two lines in the script (examples of -3 for b1 and 0.25 for se provided here).
Once those values are provided you should be able to knit the file, render the HTML file you will submit for solutions.
add appropriate values for b1 and se from the regression tableb1 <- -3se <- 0.25
no need to change anything below
upper.ci <- b1 + 1.96se lower.ci <- b1 - 1.96se
plot( c(lower.ci,upper.ci), c(1,1), xlim=c(lower.ci-0.5,1), ylim=c(0,3), xlab="", ylab="", axes=F, bty="n", type="l", lwd=3, col="darkorange", main="Model 1" ) points( b1, 1, col="darkorange", pch=19, cex=3 ) text( b1, 1, b1, pos=3, col="gray30", cex=1.5, offset=1 ) text( c(lower.ci,upper.ci), 1, round(c(lower.ci,upper.ci),2), pos=c(2,4), cex=0.8, col="gray40") abline( v=0, lty=2, lwd=2, col="gray40" ) axis( side=1, at=0, labels="B1=0" )
If you are having trouble knitting, please email Professor Tsapara or myself. If your file doesn't knit, it might be a package set-up issue. The basics of R are covered in CPP 526, so if you are only taking CPP 523 we can help with your R questions since you are not being graded on R skills specifically in 523.
The tutorials are helpful. Try to watch the Tour of R Studio video if you want a nice intro to the platform.
TOUR OF R STUDIO https://www.youtube.com/embed/Qc7BNlozOcE
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MP45465473NHSFGKWLQ7N3ARA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4M5GQ#issuecomment-578342554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MLT6ELAYHQCHVJKR53Q7N3ARANCNFSM4KLHFKRA .
These are just examples of how to add values, but not the correct values. You need to identify those from the table (so you are correct that your table is different from these examples).
# add appropriate values for b1 and se from the regression table
b1 <- -3
se <- 0.25
I am aware that to calculate the Confidence Interval, I need to get the mean, standard deviation, and standard errors (average + or - zscore * standard error). However, I am not able to translate this into R.
It is important to note that every statistic has a sampling distribution, and thus a standard error and CI. You are referencing the formula for the confidence interval of a mean - our sample statistic used to estimate the population mean. In this course you will use the confidence interval of the slope, so b1 is at the center of the CI instead of x-bar. See below for comparisons of formulas.
The formula in R is this:
upper.ci <- b1 + 1.96*se
lower.ci <- b1 - 1.96*se
Where 1.96 is the t-value associated with a 95% confidence interval. It is already included in the script. Once you enter values for b1 and se it will find the upper and lower bounds for you.
Knitting is how you render the HTML document from the RMD file:
https://ds4ps.org/docs/#knitting-r-markdown-files
Hope this helps! Please post follow-up questions if you are still having issues.
Hello Professor,
Thanks a lot for the material, I will go over them again during the weekend since I found some difficulty while solving the assignment.
I actually edited the code on GitHub and I committed the changes (as per attached). Should I have done it differently? like should I have copy pasted the questions to R studio and created a markdown as mentioned in the link?
Best, Ghida
On Sat, Jan 25, 2020 at 11:55 PM Jesse Lecy notifications@github.com wrote:
These are just examples of how to add values, but not the correct values. You need to identify those from the table (so you are correct that your table is different from these examples).
add appropriate values for b1 and se from the regression tableb1 <- -3se <- 0.25
I am aware that to calculate the Confidence Interval, I need to get the mean, standard deviation, and standard errors (average + or - zscore * standard error). However, I am not able to translate this into R.
It is important to note that every statistic has a sampling distribution, and thus a standard error and CI. You are referencing the formula for the confidence interval of a mean - our sample statistic used to estimate the population mean. In this course you will use the confidence interval of the slope, so b1 is at the center of the CI instead of x-bar. See below for comparisons of formulas.
The formula is R is this:
upper.ci <- b1 + 1.96se lower.ci <- b1 - 1.96se
Where 1.96 is the t-value associated with a 95% confidence interval. It is already included in the script. Once you enter values for b1 and se it will find the upper and lower bounds for you.
Knitting is how you render the HTML document from the RMD file:
https://ds4ps.org/docs/#knitting-r-markdown-files
Hope this helps! Please post follow-up questions if you are still having issues.
[image: image] https://user-images.githubusercontent.com/1209099/73127641-a08a3f80-3f80-11ea-8305-9d9e0d23b785.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MOJA5LKGVZA4USMWQDQ7SYLPA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5GIHI#issuecomment-578446365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MLSSI7CI5ZEFFWJMX3Q7SYLPANCNFSM4KLHFKRA .
When you respond to a discussion board post via email it will not include attachments (you can, however, add them directly to the discussion board):
https://github.com/DS4PS/cpp-523-spr-2020/issues/7#issuecomment-578447486
I am not sure what you mean by editing the code on GitHub?
If you click on the download template link it will download an R Markdown (RMD) file you can open in R Studio and knit on your computer.
Hello Sir,
I was able to submit the assignment. The thing is, I didn't know that we can copy the code from github to R-studio. So, I wasn't able to read the regression table or to understand the given properly. As I mentioned earlier, I am new to R and statistics, thus I am not sure If I did well with the assignment.
Do you think I should drop CPP523 and take CPP526 instead?
Otherwise, please let me know if there are any other resources I can check to understand the material of CPP523 and R specifically. I am reading in the Lewis book and I downloaded the R book pdf provided earlier.
Thanks a million,
Have a good day Sir.
Best, Ghida
On Sun, Jan 26, 2020 at 12:29 AM Jesse Lecy notifications@github.com wrote:
When you respond to a discussion board post via email it will not include attachments (you can, however, add them directly to the discussion board):
7 (comment)
https://github.com/DS4PS/cpp-523-spr-2020/issues/7#issuecomment-578447486
I am not sure what you mean by editing the code on GitHub?
If you click on the download template link it will download an R Markdown (RMD) file you can open in R Studio and knit there.
[image: image] https://user-images.githubusercontent.com/1209099/73128076-6c664d00-3f87-11ea-82a9-ed29d1c81653.png
DOWNLOAD RMD TEMPLATE https://www.dropbox.com/s/2ins31g7coxw6ey/lab-02-TEMPLATE.rmd?dl=1
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MIUV7R22HHVGYVKV4TQ7S4NHA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5G2SY#issuecomment-578448715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MJA5UHK7LB5XAGT4YTQ7S4NHANCNFSM4KLHFKRA .
Hello Ghida, Let me review your work so I can see why you are worried and let's talk tomorrow further as it is better if we do not discuss this matter in a public forum. Dr Tsapara On Saturday, January 25, 2020, 05:04:04 PM CST, gzbib notifications@github.com wrote:
Hello Sir,
I was able to submit the assignment. The thing is, I didn't know that we can copy the code from github to R-studio. So, I wasn't able to read the regression table or to understand the given properly. As I mentioned earlier, I am new to R and statistics, thus I am not sure If I did well with the assignment.
Do you think I should drop CPP523 and take CPP526 instead?
Otherwise, please let me know if there are any other resources I can check to understand the material of CPP523 and R specifically. I am reading in the Lewis book and I downloaded the R book pdf provided earlier.
Thanks a million,
Have a good day Sir.
Best, Ghida
On Sun, Jan 26, 2020 at 12:29 AM Jesse Lecy notifications@github.com wrote:
When you respond to a discussion board post via email it will not include attachments (you can, however, add them directly to the discussion board):
7 (comment)
https://github.com/DS4PS/cpp-523-spr-2020/issues/7#issuecomment-578447486
I am not sure what you mean by editing the code on GitHub?
If you click on the download template link it will download an R Markdown (RMD) file you can open in R Studio and knit there.
[image: image] https://user-images.githubusercontent.com/1209099/73128076-6c664d00-3f87-11ea-82a9-ed29d1c81653.png
DOWNLOAD RMD TEMPLATE https://www.dropbox.com/s/2ins31g7coxw6ey/lab-02-TEMPLATE.rmd?dl=1
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DS4PS/cpp-523-spr-2020/issues/7?email_source=notifications&email_token=AOLY2MIUV7R22HHVGYVKV4TQ7S4NHA5CNFSM4KLHFKRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5G2SY#issuecomment-578448715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLY2MJA5UHK7LB5XAGT4YTQ7S4NHANCNFSM4KLHFKRA .
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
@gzbib It is easier if you take 526 before or at the same time as 523, but it is not required.
CPP 593 emphasizes intuition behind regressions, so you are being evaluated on the regression content and you are NOT evaluated on the programming skills in this class.
For the most part you are given the code you need for labs in 523. You typically only need to change variable names or values for specific questions, then knit the files.
So you do need to basic R skills for 523 in order to knit the files. but you are not expected to be writing your own code or functions. Just focus on interpretation of the regression results.
It will take a couple of labs to get comfortable with RMD files. Review tutorials and ask questions as needed (discussion boards or office hours). We are here to help!
@itsapara @lecy Thanks a lot for your assistance. Your feedback is well received. I will check with my advisor if it is possible for me as a scholar to drop at this stage. If not, I will continue with the course and I will go over tutorials. Plus, I will wait for your feedback regarding my assignment.
Hi, can someone please help me figure out why I get these errors? Thank you!
# do not change this chunk
# load data
URL <- "https://raw.githubusercontent.com/DS4PS/cpp-523-fall-2019/master/labs/class-size-seed-1234.csv"
dat <- read.csv( URL )
Error in file(file, "rt") : cannot open the connection to 'https://raw.githubusercontent.com/DS4PS/cpp-523-fall-2019/master/labs/class-size-seed-1234.csv'
# load draw_ci function
source( "https://raw.githubusercontent.com/DS4PS/sourcer-r/master/sourcer.R" )
Error in file(filename, "r", encoding = encoding) : cannot open the connection to 'https://raw.githubusercontent.com/DS4PS/sourcer-r/master/sourcer.R'
@Niagara1000 Not sure, here is the output when I run that code so it is working:
> # load data
> URL <- "https://raw.githubusercontent.com/DS4PS/cpp-523-fall-2019/master/labs/class-size-seed-1234.csv"
> dat <- read.csv( URL )
> head( dat )
test csize tqual ses
1 503.9714 38 3.792934 0.79466658
2 651.3277 23 5.277429 2.30146674
3 623.6245 42 6.084441 0.46085478
4 539.0006 21 2.654302 2.63537072
5 673.0985 20 5.429125 2.70295177
6 584.3932 46 5.506056 0.09411714
> # load draw_ci function
> source( "https://raw.githubusercontent.com/DS4PS/sourcer-r/master/sourcer.R" )
> ls()
[1] "dat" "draw_ci" "jplot" "panel.cor" "panel.smooth" "URL"
Maybe a poor internet connection? Try again?
No Content is available for Lab02 when I open the assignment in Canvas.
Kindly assist.